Moved some VC++ specific hacks to platform header.

master
Camilla Berglund ago%!(EXTRA string=11 years)
parent eb460c30ce
commit 76eefcc08a
  1. 4
      src/gamma.c
  2. 5
      src/monitor.c
  3. 5
      src/win32_platform.h
  4. 3
      src/window.c

@ -30,10 +30,6 @@
#include <stdlib.h>
#include <string.h>
#if defined(_MSC_VER)
#include <malloc.h>
#endif
//////////////////////////////////////////////////////////////////////////
////// GLFW internal API //////

@ -31,11 +31,6 @@
#include <stdlib.h>
#include <limits.h>
#if defined(_MSC_VER)
#include <malloc.h>
#define strdup _strdup
#endif
// Lexical comparison function for GLFW video modes, used by qsort
//

@ -62,6 +62,11 @@
#define _WIN32_WINNT 0x0501
#endif
#if defined(_MSC_VER)
#include <malloc.h>
#define strdup _strdup
#endif
#include <windows.h>
#include <mmsystem.h>
#include <dbt.h>

@ -30,9 +30,6 @@
#include <string.h>
#include <stdlib.h>
#if defined(_MSC_VER)
#include <malloc.h>
#endif
// Return the maxiumum of the specified values

Loading…
Cancel
Save