internal/glfw/glfw: move xkb_unicode.* and X11 files

This commit is contained in:
Hajime Hoshi 2023-07-20 23:25:16 +09:00
parent 8df1b6578a
commit bccb33236f
7 changed files with 11 additions and 5 deletions

View File

@ -22,8 +22,6 @@ package glfw
#include "glfw/src/x11_init.c" #include "glfw/src/x11_init.c"
#include "glfw/src/x11_monitor.c" #include "glfw/src/x11_monitor.c"
#include "glfw/src/x11_window.c" #include "glfw/src/x11_window.c"
#include "glfw/src/glx_context.c"
#endif #endif
#include "glfw/src/xkb_unicode.c"
*/ */
import "C" import "C"

View File

@ -31,7 +31,7 @@
#include "posix_thread.h" #include "posix_thread.h"
#include "posix_time_linbsd.h" #include "posix_time_linbsd.h"
#include "xkb_unicode.h" #include "xkb_unicode_linbsd.h"
#include "egl_context.h" #include "egl_context.h"
#include "osmesa_context.h" #include "osmesa_context.h"

View File

@ -125,8 +125,8 @@ typedef XRenderPictFormat* (* PFN_XRenderFindVisualFormat)(Display*,Visual const
#include "posix_thread.h" #include "posix_thread.h"
#include "posix_time_linbsd.h" #include "posix_time_linbsd.h"
#include "xkb_unicode.h" #include "xkb_unicode_linbsd.h"
#include "glx_context.h" #include "glx_context_linbsd.h"
#include "egl_context.h" #include "egl_context.h"
#include "osmesa_context.h" #include "osmesa_context.h"

View File

@ -27,6 +27,8 @@
// It is fine to use C99 in this file because it will not be built with VS // It is fine to use C99 in this file because it will not be built with VS
//======================================================================== //========================================================================
//go:build (freebsd || linux || netbsd || openbsd) && !wayland
#include "internal.h" #include "internal.h"
#include <string.h> #include <string.h>

View File

@ -25,6 +25,8 @@
// //
//======================================================================== //========================================================================
//go:build (freebsd || linux || netbsd || openbsd) && !wayland
#define GLX_VENDOR 1 #define GLX_VENDOR 1
#define GLX_RGBA_BIT 0x00000001 #define GLX_RGBA_BIT 0x00000001
#define GLX_WINDOW_BIT 0x00000001 #define GLX_WINDOW_BIT 0x00000001

View File

@ -27,6 +27,8 @@
// It is fine to use C99 in this file because it will not be built with VS // It is fine to use C99 in this file because it will not be built with VS
//======================================================================== //========================================================================
//go:build freebsd || linux || netbsd || openbsd
#include "internal.h" #include "internal.h"

View File

@ -24,6 +24,8 @@
// //
//======================================================================== //========================================================================
//go:build freebsd || linux || netbsd || openbsd
#define GLFW_INVALID_CODEPOINT 0xffffffffu #define GLFW_INVALID_CODEPOINT 0xffffffffu
uint32_t _glfwKeySym2Unicode(unsigned int keysym); uint32_t _glfwKeySym2Unicode(unsigned int keysym);