Define WIN32_LEAN_AND_MEAN when including windows.h in alMain.h

This commit is contained in:
Chris Robinson 2012-10-06 21:36:15 -07:00
parent d52cb3708b
commit 9501f1cb9e
3 changed files with 7 additions and 0 deletions

View File

@ -21,6 +21,9 @@
#include "config.h" #include "config.h"
#include <stdlib.h> #include <stdlib.h>
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#endif
#include "alMain.h" #include "alMain.h"
#include "alu.h" #include "alu.h"

View File

@ -23,6 +23,9 @@
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <memory.h> #include <memory.h>
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#endif
#include "alMain.h" #include "alMain.h"
#include "alu.h" #include "alu.h"

View File

@ -107,6 +107,7 @@ static const union {
#ifdef _WIN32 #ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h> #include <windows.h>
typedef DWORD pthread_key_t; typedef DWORD pthread_key_t;