Moved platform identifier define to config header.

This commit is contained in:
Camilla Berglund
2010-11-17 14:59:27 +01:00
parent 3be0c05aaa
commit 5a112d6cd1
5 changed files with 17 additions and 10 deletions
-3
View File
@@ -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
+7
View File
@@ -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
-3
View File
@@ -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
-3
View File
@@ -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>