mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
./internal/glfw/glfw: move posix_*.* files
This commit is contained in:
parent
d8a8404fd4
commit
4d9ae2a815
@ -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"
|
||||||
*/
|
*/
|
||||||
|
@ -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"
|
||||||
*/
|
*/
|
||||||
|
@ -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)
|
||||||
|
@ -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"
|
||||||
|
@ -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"
|
||||||
|
@ -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>
|
@ -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
|
@ -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>
|
@ -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>
|
Loading…
Reference in New Issue
Block a user