config.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. /****************************************************************************
  2. CONFIG.H - Midnight Commander Configuration for Win32
  3. This program is free software; you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation; either version 2 of the License, or
  6. (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program; if not, write to the Free Software
  13. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  14. ----------------------------------------------------------------------------
  15. Changes:
  16. - Created 951204/jfg
  17. ----------------------------------------------------------------------------
  18. Contents:
  19. - Headers flags
  20. - Library flags
  21. - Typedefs
  22. - etc.
  23. ****************************************************************************/
  24. #ifndef __CONFIG_H
  25. #define __CONFIG_H
  26. #ifndef __BORLANDC__
  27. # include <../VERSION>
  28. #else
  29. # include <../VERSION.>
  30. #endif
  31. #ifndef WIN32
  32. # define WIN32
  33. #endif
  34. #ifndef __WIN32__
  35. # define __WIN32__
  36. #endif
  37. #ifndef MSWINDOWS
  38. # define MSWINDOWS
  39. #endif
  40. #ifndef pc_system
  41. # define pc_system
  42. #endif
  43. #define _OS_NT
  44. #define OS2_NT
  45. #define FLOAT_TYPE
  46. #define MIDNIGHT
  47. #define STDC_HEADERS
  48. #define HAVE_STDLIB_H
  49. #define HAVE_STRING_H
  50. #define HAVE_DIRENT_H
  51. #define HAVE_LIMITS_H
  52. #define HAVE_FCNTL_H
  53. #define HAVE_MEMSET
  54. #define HAVE_MEMCHR
  55. #define HAVE_MEMCPY
  56. #define HAVE_MEMCMP
  57. #define HAVE_MEMMOVE
  58. #define HAVE_STRDUP
  59. #define HAVE_STRERROR
  60. #define HAVE_TRUNCATE
  61. #define REGEX_MALLOC
  62. #define NO_INFOMOUNT
  63. #if !defined(HAVE_SLANG) && !defined (USE_NCURSES)
  64. #define HAVE_SLANG
  65. #endif
  66. #ifdef USE_NCURSES
  67. #define RENAMED_NCURSES
  68. #endif
  69. typedef unsigned int umode_t;
  70. #define S_IFLNK 0
  71. #define S_ISLNK(x) 0
  72. #ifdef _MSC_VER
  73. #pragma include_alias(<utime.h>, <sys/utime.h>)
  74. #define INLINE
  75. #define inline
  76. #define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)
  77. #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
  78. #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
  79. #define S_ISFIFO(m) 0
  80. #define S_ISBLK(x) 0
  81. #define S_IRWXU 0000700
  82. #define S_IRUSR 0000400
  83. #define S_IWUSR 0000200
  84. #define S_IXUSR 0000100
  85. #define S_IRWXG 0000070
  86. #define S_IRGRP 0000040
  87. #define S_IWGRP 0000020
  88. #define S_IXGRP 0000010
  89. #define S_IRWXO 0000007
  90. #define S_IROTH 0000004
  91. #define S_IWOTH 0000002
  92. #define S_IXOTH 0000001
  93. /* FIXME: is this definition correct? */
  94. #define R_OK 4
  95. #define pipe(p) _pipe(p, 4096, 0x8000 /* O_BINARY */)
  96. #define popen _popen
  97. #define pclose _pclose
  98. typedef int mode_t;
  99. typedef unsigned int nlink_t;
  100. typedef int gid_t;
  101. typedef int uid_t;
  102. typedef int pid_t;
  103. #endif /* _MSC_VER */
  104. #ifdef __BORLANDC__
  105. #define INLINE
  106. #define inline
  107. #define S_IRWXG 0000070
  108. #define S_IRGRP 0000040
  109. #define S_IWGRP 0000020
  110. #define S_IXGRP 0000010
  111. #define S_IRWXO 0000007
  112. #define S_IROTH 0000004
  113. #define S_IWOTH 0000002
  114. #define S_IXOTH 0000001
  115. /* FIXME: is this definition correct? */
  116. #define R_OK 4
  117. #define pipe(p) _pipe(p, 4096, 0x8000 /* O_BINARY */)
  118. #define popen _popen
  119. #define pclose _pclose
  120. typedef int pid_t;
  121. #endif /* __BORLANDC__ */
  122. #endif /* __CONFIG_H */