2013-06-23 07:49:34 +00:00
|
|
|
#ifndef __GL_PCH_H
|
|
|
|
#define __GL_PCH_H
|
|
|
|
|
|
|
|
#include <math.h>
|
|
|
|
#include <float.h>
|
|
|
|
#include <limits.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
//#include <direct.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <ctype.h>
|
|
|
|
#include <limits.h>
|
|
|
|
#include <assert.h>
|
|
|
|
#include <errno.h>
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <signal.h>
|
2017-07-25 04:59:10 +00:00
|
|
|
#if !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__OpenBSD__)
|
2013-06-23 07:49:34 +00:00
|
|
|
#include <malloc.h>
|
|
|
|
#endif
|
|
|
|
#include <time.h>
|
|
|
|
|
|
|
|
#ifdef _MSC_VER
|
|
|
|
#define F_OK 0 /* Check for file existence */
|
|
|
|
#define W_OK 2 /* Check for write permission */
|
|
|
|
#define R_OK 4 /* Check for read permission */
|
|
|
|
#include <io.h>
|
|
|
|
#else
|
|
|
|
#include <unistd.h>
|
|
|
|
#endif
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/stat.h>
|
|
|
|
#include <fcntl.h>
|
|
|
|
|
2013-12-09 10:34:26 +00:00
|
|
|
//GL headers
|
2014-08-21 09:02:46 +00:00
|
|
|
#include "gl_load.h"
|
2014-04-06 12:35:44 +00:00
|
|
|
|
|
|
|
#if defined(__APPLE__)
|
|
|
|
#include <OpenGL/OpenGL.h>
|
2013-12-09 10:34:26 +00:00
|
|
|
#endif
|
2013-06-23 07:49:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef _MSC_VER
|
|
|
|
#pragma warning(disable : 4244) // MIPS
|
|
|
|
#pragma warning(disable : 4136) // X86
|
|
|
|
#pragma warning(disable : 4051) // ALPHA
|
|
|
|
|
|
|
|
#pragma warning(disable : 4018) // signed/unsigned mismatch
|
|
|
|
#pragma warning(disable : 4305) // truncate from double to float
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif //__GL_PCH_H
|