./internal/glfw/glfw: move posix_*.* files

This commit is contained in:
Hajime Hoshi 2023-07-13 03:32:28 +09:00
parent d8a8404fd4
commit 4d9ae2a815
9 changed files with 11 additions and 6 deletions

View File

@ -10,7 +10,6 @@ package glfw
#include "glfw/src/cocoa_monitor.m" #include "glfw/src/cocoa_monitor.m"
#include "glfw/src/cocoa_window.m" #include "glfw/src/cocoa_window.m"
#include "glfw/src/cocoa_time.c" #include "glfw/src/cocoa_time.c"
#include "glfw/src/posix_thread.c"
#include "glfw/src/nsgl_context.m" #include "glfw/src/nsgl_context.m"
#include "glfw/src/egl_context.c" #include "glfw/src/egl_context.c"
*/ */

View File

@ -24,8 +24,6 @@ package glfw
#include "glfw/src/x11_window.c" #include "glfw/src/x11_window.c"
#include "glfw/src/glx_context.c" #include "glfw/src/glx_context.c"
#endif #endif
#include "glfw/src/posix_time.c"
#include "glfw/src/posix_thread.c"
#include "glfw/src/xkb_unicode.c" #include "glfw/src/xkb_unicode.c"
#include "glfw/src/egl_context.c" #include "glfw/src/egl_context.c"
*/ */

View File

@ -38,7 +38,7 @@
#define _GLFW_EGL_LIBRARY_CONTEXT_STATE struct { int dummyEGLLibraryContext; } #define _GLFW_EGL_LIBRARY_CONTEXT_STATE struct { int dummyEGLLibraryContext; }
#include "osmesa_context.h" #include "osmesa_context.h"
#include "posix_time.h" #include "posix_time_linbsd.h"
#include "posix_thread.h" #include "posix_thread.h"
#define _glfw_dlopen(name) dlopen(name, RTLD_LAZY | RTLD_LOCAL) #define _glfw_dlopen(name) dlopen(name, RTLD_LAZY | RTLD_LOCAL)

View File

@ -30,7 +30,7 @@
#include <dlfcn.h> #include <dlfcn.h>
#include "posix_thread.h" #include "posix_thread.h"
#include "posix_time.h" #include "posix_time_linbsd.h"
#include "xkb_unicode.h" #include "xkb_unicode.h"
#include "egl_context.h" #include "egl_context.h"
#include "osmesa_context.h" #include "osmesa_context.h"

View File

@ -124,7 +124,7 @@ typedef XRenderPictFormat* (* PFN_XRenderFindVisualFormat)(Display*,Visual const
#define XRenderFindVisualFormat _glfw.x11.xrender.FindVisualFormat #define XRenderFindVisualFormat _glfw.x11.xrender.FindVisualFormat
#include "posix_thread.h" #include "posix_thread.h"
#include "posix_time.h" #include "posix_time_linbsd.h"
#include "xkb_unicode.h" #include "xkb_unicode.h"
#include "glx_context.h" #include "glx_context.h"
#include "egl_context.h" #include "egl_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 darwin || freebsd || linux || netbsd || openbsd
#include "internal.h" #include "internal.h"
#include <assert.h> #include <assert.h>

View File

@ -25,6 +25,8 @@
// //
//======================================================================== //========================================================================
//go:build darwin || freebsd || linux || netbsd || openbsd
#include <pthread.h> #include <pthread.h>
#define _GLFW_PLATFORM_TLS_STATE _GLFWtlsPOSIX posix #define _GLFW_PLATFORM_TLS_STATE _GLFWtlsPOSIX posix

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"
#include <sys/time.h> #include <sys/time.h>

View File

@ -25,6 +25,8 @@
// //
//======================================================================== //========================================================================
//go:build freebsd || linux || netbsd || openbsd
#define _GLFW_PLATFORM_LIBRARY_TIMER_STATE _GLFWtimerPOSIX posix #define _GLFW_PLATFORM_LIBRARY_TIMER_STATE _GLFWtimerPOSIX posix
#include <stdint.h> #include <stdint.h>