@ -601,7 +601,11 @@ static void detectEWMH(void)
//
static GLFWbool initExtensions ( void )
{
# if defined(__OpenBSD__)
_glfw . x11 . vidmode . handle = _glfwPlatformLoadModule ( " libXxf86vm.so " ) ;
# else
_glfw . x11 . vidmode . handle = _glfwPlatformLoadModule ( " libXxf86vm.so.1 " ) ;
# endif
if ( _glfw . x11 . vidmode . handle )
{
_glfw . x11 . vidmode . QueryExtension = ( PFN_XF86VidModeQueryExtension )
@ -621,6 +625,8 @@ static GLFWbool initExtensions(void)
# if defined(__CYGWIN__)
_glfw . x11 . xi . handle = _glfwPlatformLoadModule ( " libXi-6.so " ) ;
# elif defined(__OpenBSD__)
_glfw . x11 . xi . handle = _glfwPlatformLoadModule ( " libXi.so " ) ;
# else
_glfw . x11 . xi . handle = _glfwPlatformLoadModule ( " libXi.so.6 " ) ;
# endif
@ -651,6 +657,8 @@ static GLFWbool initExtensions(void)
# if defined(__CYGWIN__)
_glfw . x11 . randr . handle = _glfwPlatformLoadModule ( " libXrandr-2.so " ) ;
# elif defined(__OpenBSD__)
_glfw . x11 . randr . handle = _glfwPlatformLoadModule ( " libXrandr.so " ) ;
# else
_glfw . x11 . randr . handle = _glfwPlatformLoadModule ( " libXrandr.so.2 " ) ;
# endif
@ -743,6 +751,8 @@ static GLFWbool initExtensions(void)
# if defined(__CYGWIN__)
_glfw . x11 . xcursor . handle = _glfwPlatformLoadModule ( " libXcursor-1.so " ) ;
# elif defined(__OpenBSD__)
_glfw . x11 . xcursor . handle = _glfwPlatformLoadModule ( " libXcursor.so " ) ;
# else
_glfw . x11 . xcursor . handle = _glfwPlatformLoadModule ( " libXcursor.so.1 " ) ;
# endif
@ -764,6 +774,8 @@ static GLFWbool initExtensions(void)
# if defined(__CYGWIN__)
_glfw . x11 . xinerama . handle = _glfwPlatformLoadModule ( " libXinerama-1.so " ) ;
# elif defined(__OpenBSD__)
_glfw . x11 . xinerama . handle = _glfwPlatformLoadModule ( " libXinerama.so " ) ;
# else
_glfw . x11 . xinerama . handle = _glfwPlatformLoadModule ( " libXinerama.so.1 " ) ;
# endif
@ -817,6 +829,8 @@ static GLFWbool initExtensions(void)
{
# if defined(__CYGWIN__)
_glfw . x11 . x11xcb . handle = _glfwPlatformLoadModule ( " libX11-xcb-1.so " ) ;
# elif defined(__OpenBSD__)
_glfw . x11 . x11xcb . handle = _glfwPlatformLoadModule ( " libX11-xcb.so " ) ;
# else
_glfw . x11 . x11xcb . handle = _glfwPlatformLoadModule ( " libX11-xcb.so.1 " ) ;
# endif
@ -830,6 +844,8 @@ static GLFWbool initExtensions(void)
# if defined(__CYGWIN__)
_glfw . x11 . xrender . handle = _glfwPlatformLoadModule ( " libXrender-1.so " ) ;
# elif defined(__OpenBSD__)
_glfw . x11 . xrender . handle = _glfwPlatformLoadModule ( " libXrender.so " ) ;
# else
_glfw . x11 . xrender . handle = _glfwPlatformLoadModule ( " libXrender.so.1 " ) ;
# endif
@ -857,6 +873,8 @@ static GLFWbool initExtensions(void)
# if defined(__CYGWIN__)
_glfw . x11 . xshape . handle = _glfwPlatformLoadModule ( " libXext-6.so " ) ;
# elif defined(__OpenBSD__)
_glfw . x11 . xshape . handle = _glfwPlatformLoadModule ( " libXext.so " ) ;
# else
_glfw . x11 . xshape . handle = _glfwPlatformLoadModule ( " libXext.so.6 " ) ;
# endif
@ -1203,6 +1221,8 @@ GLFWbool _glfwConnectX11(int platformID, _GLFWplatform* platform)
# if defined(__CYGWIN__)
void * module = _glfwPlatformLoadModule ( " libX11-6.so " ) ;
# elif defined(__OpenBSD__)
void * module = _glfwPlatformLoadModule ( " libX11.so " ) ;
# else
void * module = _glfwPlatformLoadModule ( " libX11.so.6 " ) ;
# endif