2
ispc.cpp
2
ispc.cpp
@@ -44,6 +44,8 @@
|
|||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <direct.h>
|
#include <direct.h>
|
||||||
#define strcasecmp stricmp
|
#define strcasecmp stricmp
|
||||||
|
#else
|
||||||
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
#include <llvm/LLVMContext.h>
|
#include <llvm/LLVMContext.h>
|
||||||
#include <llvm/Module.h>
|
#include <llvm/Module.h>
|
||||||
|
|||||||
2
lex.ll
2
lex.ll
@@ -58,6 +58,8 @@ extern void RegisterDependency(const std::string &fileName);
|
|||||||
|
|
||||||
#ifdef ISPC_IS_WINDOWS
|
#ifdef ISPC_IS_WINDOWS
|
||||||
inline int isatty(int) { return 0; }
|
inline int isatty(int) { return 0; }
|
||||||
|
#else
|
||||||
|
#include <unistd.h>
|
||||||
#endif // ISPC_IS_WINDOWS
|
#endif // ISPC_IS_WINDOWS
|
||||||
|
|
||||||
static int allTokens[] = {
|
static int allTokens[] = {
|
||||||
|
|||||||
2
main.cpp
2
main.cpp
@@ -43,6 +43,8 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#ifdef ISPC_IS_WINDOWS
|
#ifdef ISPC_IS_WINDOWS
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
#else
|
||||||
|
#include <unistd.h>
|
||||||
#endif // ISPC_IS_WINDOWS
|
#endif // ISPC_IS_WINDOWS
|
||||||
#include <llvm/Support/Signals.h>
|
#include <llvm/Support/Signals.h>
|
||||||
#include <llvm/Support/TargetRegistry.h>
|
#include <llvm/Support/TargetRegistry.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user