mirror of
https://github.com/glfw/glfw.git
synced 2026-09-18 22:55:46 +00:00
Moved platform identifier define to config header.
This commit is contained in:
@@ -34,9 +34,6 @@
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
// This is the Mac OS X version of GLFW
|
||||
#define _GLFW_MAC_OS_X
|
||||
|
||||
#if defined(__OBJC__)
|
||||
#import <Cocoa/Cocoa.h>
|
||||
#else
|
||||
|
||||
@@ -35,6 +35,13 @@
|
||||
// it. Instead, you should modify the config.h.in file.
|
||||
//========================================================================
|
||||
|
||||
// Define this to 1 if building GLFW for X11/GLX
|
||||
#cmakedefine _GLFW_X11_GLX
|
||||
// Define this to 1 if building GLFW for Win32/WGL
|
||||
#cmakedefine _GLFW_WIN32_WGL
|
||||
// Define this to 1 if building GLFW for Cocoa/NSOpenGL
|
||||
#cmakedefine _GLFW_COCOA_NSGL
|
||||
|
||||
// Define this to 1 if XRandR is available
|
||||
#cmakedefine _GLFW_HAS_XRANDR 1
|
||||
// Define this to 1 if Xf86VidMode is available
|
||||
|
||||
@@ -32,9 +32,6 @@
|
||||
#define _platform_h_
|
||||
|
||||
|
||||
// This is the Windows version of GLFW
|
||||
#define _GLFW_WIN32
|
||||
|
||||
// We don't need all the fancy stuff
|
||||
#define NOMINMAX
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
|
||||
@@ -31,9 +31,6 @@
|
||||
#ifndef _platform_h_
|
||||
#define _platform_h_
|
||||
|
||||
// This is the X11 version of GLFW
|
||||
#define _GLFW_X11
|
||||
|
||||
#include <sys/time.h>
|
||||
#include <unistd.h>
|
||||
#include <signal.h>
|
||||
|
||||
Reference in New Issue
Block a user