ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

compat.h
Go to the documentation of this file.
00001 #pragma once
00002 
00003 #if defined (__DJGPP__) || defined (__WIN32__)
00004 
00005 #include <direct.h>
00006 
00007 #define POPEN           _popen
00008 #define PCLOSE          _pclose
00009 #define MKDIR(d)        _mkdir(d)
00010 #define DEV_NULL        "NUL"
00011 #define DOS_PATHS
00012 #define PATH_CHAR       '\\'
00013 #define PATH_STR        "\\"
00014 #define PATHCMP         strcasecmp
00015 #define CP_CMD          "copy /Y "
00016 #define DIR_FMT         "dir /a:-d /s /b %s > %s"
00017 
00018 #else /* not defined (__DJGPP__) || defined (__WIN32__) */
00019 
00020 #include <limits.h>
00021 #include <sys/stat.h>
00022 
00023 #define MAX_PATH        PATH_MAX
00024 #define POPEN           popen
00025 #define PCLOSE          pclose
00026 #define MKDIR(d)        mkdir(d, S_IRWXU|S_IRWXG|S_IROTH|S_IXOTH)
00027 #define DEV_NULL        "/dev/null"
00028 #define UNIX_PATHS
00029 #define PATH_CHAR       '/'
00030 #define PATH_STR        "/"
00031 #define PATHCMP         strcasecmp
00032 #define CP_CMD          "cp -f "
00033 #define DIR_FMT         "find %s -type f > %s"
00034 
00035 #endif /* not defined (__DJGPP__) || defined (__WIN32__) */
00036 
00037 /* EOF */

Generated on Wed May 23 2012 04:17:05 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.