Go to the documentation of this file. 13 #ifndef __COCO_PLATFORM__ 14 #define __COCO_PLATFORM__ 20 #if defined(_WIN32) || defined(_WIN64) || defined(__MINGW64__) || defined(__CYGWIN__) 22 static const char *coco_path_separator =
"\\";
23 #define COCO_PATH_MAX MAX_PATH 25 #elif defined(__gnu_linux__) 27 #include <sys/types.h> 28 #include <linux/limits.h> 29 static const char *coco_path_separator =
"/";
31 #define COCO_PATH_MAX PATH_MAX 32 #elif defined(__APPLE__) 34 #include <sys/types.h> 35 #include <sys/syslimits.h> 36 static const char *coco_path_separator =
"/";
38 #define COCO_PATH_MAX PATH_MAX 39 #elif defined(__FreeBSD__) 41 #include <sys/types.h> 43 static const char *coco_path_separator =
"/";
45 #define COCO_PATH_MAX PATH_MAX 46 #elif (defined(__sun) || defined(sun)) && (defined(__SVR4) || defined(__svr4__)) 49 #include <sys/types.h> 51 static const char *coco_path_separator =
"/";
53 #define COCO_PATH_MAX PATH_MAX 55 #error Unknown platform 57 #if !defined(COCO_PATH_MAX) 58 #error COCO_PATH_MAX undefined 65 #elif defined(__MINGW32__) || defined(__MINGW64__) 76 int rmdir(
const char *pathname);
77 int unlink(
const char *file_name);
78 int mkdir(
const char *pathname, mode_t mode);
89 #pragma warning(disable:4996)