mirror of
https://github.com/glfw/glfw.git
synced 2026-08-29 03:04:14 +02:00
Fixed warnings on VC++.
This commit is contained in:
@@ -16,6 +16,10 @@ endif()
|
||||
include_directories(${GLFW_SOURCE_DIR}/include
|
||||
${GLFW_SOURCE_DIR}/support)
|
||||
|
||||
if (MSVC)
|
||||
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
||||
endif()
|
||||
|
||||
if (NOT APPLE)
|
||||
# HACK: This is NOTFOUND on OS X 10.8
|
||||
include_directories(${OPENGL_INCLUDE_DIR})
|
||||
|
||||
@@ -31,8 +31,6 @@
|
||||
//
|
||||
//========================================================================
|
||||
|
||||
#define _CRT_SECURE_NO_WARNINGS
|
||||
|
||||
#include <GL/glfw3.h>
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
@@ -34,6 +34,10 @@
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#define strdup(x) _strdup(x)
|
||||
#endif
|
||||
|
||||
typedef struct Joystick
|
||||
{
|
||||
GLboolean present;
|
||||
|
||||
Reference in New Issue
Block a user