windows compile fixes

This commit is contained in:
Brian Matzon 2008-11-10 20:38:55 +00:00
parent b5846167bb
commit b4f3c0e54b
1 changed files with 8 additions and 2 deletions

View File

@ -70,12 +70,18 @@ THE POSSIBILITY OF SUCH DAMAGE.
#include <string.h>
#include <stddef.h>
#include "common_tools.h"
#if defined(_WIN32) || defined(_WIN64)
#include <windows.h> // fix APIENTRY macro redefinition
# define int64_t __int64
# define uint64_t unsigned __int64
#endif
#ifndef APIENTRY
#define APIENTRY
#endif
#include "common_tools.h"
#ifdef _MACOSX
typedef unsigned long GLenum;
typedef unsigned char GLboolean;