mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 18:58:54 +01:00
internal/glfw/glfw: unify c_glfw_bsd.go and c_glfw_linux.go
This commit is contained in:
parent
bf197e379b
commit
72293d48b5
@ -2,7 +2,7 @@
|
||||
// SPDX-FileCopyrightText: 2012 The glfw3-go Authors
|
||||
// SPDX-FileCopyrightText: 2023 The Ebitengine Authors
|
||||
|
||||
//go:build freebsd || netbsd || openbsd
|
||||
//go:build freebsd || linux || netbsd || openbsd
|
||||
|
||||
package glfw
|
||||
|
@ -1,30 +0,0 @@
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
// SPDX-FileCopyrightText: 2012 The glfw3-go Authors
|
||||
// SPDX-FileCopyrightText: 2023 The Ebitengine Authors
|
||||
|
||||
package glfw
|
||||
|
||||
/*
|
||||
#ifdef _GLFW_WAYLAND
|
||||
#include "glfw/src/wl_init.c"
|
||||
#include "glfw/src/wl_monitor.c"
|
||||
#include "glfw/src/wl_window.c"
|
||||
#include "glfw/src/wayland-idle-inhibit-unstable-v1-client-protocol.c"
|
||||
#include "glfw/src/wayland-pointer-constraints-unstable-v1-client-protocol.c"
|
||||
#include "glfw/src/wayland-relative-pointer-unstable-v1-client-protocol.c"
|
||||
#include "glfw/src/wayland-viewporter-client-protocol.c"
|
||||
#include "glfw/src/wayland-xdg-decoration-unstable-v1-client-protocol.c"
|
||||
#include "glfw/src/wayland-xdg-shell-client-protocol.c"
|
||||
#endif
|
||||
#ifdef _GLFW_X11
|
||||
#include "glfw/src/x11_window.c"
|
||||
#include "glfw/src/x11_init.c"
|
||||
#include "glfw/src/x11_monitor.c"
|
||||
#include "glfw/src/glx_context.c"
|
||||
#endif
|
||||
#include "glfw/src/posix_time.c"
|
||||
#include "glfw/src/posix_thread.c"
|
||||
#include "glfw/src/xkb_unicode.c"
|
||||
#include "glfw/src/egl_context.c"
|
||||
*/
|
||||
import "C"
|
@ -27,6 +27,10 @@
|
||||
// It is fine to use C99 in this file because it will not be built with VS
|
||||
//========================================================================
|
||||
|
||||
#if !defined(_GNU_SOURCE)
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
|
||||
#include "internal.h"
|
||||
|
||||
#include <X11/Xresource.h>
|
||||
|
@ -27,7 +27,9 @@
|
||||
// It is fine to use C99 in this file because it will not be built with VS
|
||||
//========================================================================
|
||||
|
||||
#define _GNU_SOURCE
|
||||
#if !defined(_GNU_SOURCE)
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
|
||||
#include "internal.h"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user