Remove some (hopefully) redundant macros and compiler options
This commit is contained in:
@@ -8,10 +8,8 @@
|
||||
#ifndef _COMMON_H
|
||||
#define _COMMON_H
|
||||
|
||||
#define _POSIX_SOURCE
|
||||
#define _GNU_SOURCE
|
||||
#define _FILE_OFFSET_BITS 64
|
||||
#define _CRT_SECURE_NO_WARNINGS
|
||||
|
||||
#define EXEC_CACHE 128
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
#include <OpenCL/cl.h>
|
||||
#endif
|
||||
|
||||
#ifdef WIN
|
||||
#ifdef _WIN
|
||||
#include <CL/cl.h>
|
||||
#endif
|
||||
|
||||
|
||||
+2
-1
@@ -14,6 +14,7 @@
|
||||
#include <unistd.h>
|
||||
#include <signal.h>
|
||||
#include <fcntl.h>
|
||||
#include <inttypes.h>
|
||||
|
||||
/**
|
||||
* OS specific includes
|
||||
@@ -147,7 +148,7 @@ void write_restore (const char *new_restore_file, restore_data_t *rd)
|
||||
void cycle_restore (void);
|
||||
void check_checkpoint (void);
|
||||
|
||||
#ifdef WIN
|
||||
#ifdef _WIN
|
||||
|
||||
BOOL WINAPI sigHandler_default (DWORD sig);
|
||||
BOOL WINAPI sigHandler_benchmark (DWORD sig);
|
||||
|
||||
Reference in New Issue
Block a user