allow to enable PCH for gcc and clang

This commit is contained in:
wmayer
2021-05-03 17:37:58 +02:00
parent a5bab10ff7
commit a6e7bdf849
5 changed files with 17 additions and 3 deletions

View File

@@ -58,6 +58,11 @@
#include <crtdbg.h>
#endif
#if defined(FC_OS_LINUX) || defined(FC_OS_MACOSX) || defined(FC_OS_BSD)
#include <unistd.h>
#include <pwd.h>
#include <sys/types.h>
#endif
// Streams
#include <iostream>

View File

@@ -55,6 +55,12 @@
#include <Rpc.h>
#endif
#if defined (FC_OS_LINUX) || defined(FC_OS_CYGWIN) || defined(FC_OS_MACOSX) || defined(FC_OS_BSD)
#include <dirent.h>
#include <unistd.h>
#include <sys/stat.h>
#endif
// STL
#include <string>
#include <list>

View File

@@ -53,7 +53,6 @@
#include <float.h>
#include <fcntl.h>
#include <ios>
#include <io.h>
#ifdef FC_USE_GTS
# include <gts.h>
@@ -75,6 +74,7 @@
// FIXME: Causes problem with boost/numeric/bindings/lapack/syev.hpp(117)
#ifdef FC_OS_WIN32
//# include <windows.h>
#include <io.h>
#endif
#include <boost/algorithm/string/replace.hpp>

View File

@@ -53,7 +53,6 @@
#include <iostream>
#include <sstream>
#include <stdio.h>
#include <io.h>
#include <fcntl.h>
#include <assert.h>
@@ -101,7 +100,8 @@
#ifndef NOMINMAX
#define NOMINMAX
#endif
#include <windows.h>
#include <Windows.h>
#include <io.h>
#endif //_PreComp_
#ifndef _Standard_Version_HeaderFile

View File

@@ -195,6 +195,9 @@
# include <OpenGL/gl.h>
# include <OpenGL/glext.h>
# else
# ifndef GL_GLEXT_PROTOTYPES
# define GL_GLEXT_PROTOTYPES 1
# endif
# include <GL/gl.h>
# include <GL/glext.h>
# endif //FC_OS_MACOSX