home *** CD-ROM | disk | FTP | other *** search
/ ftp.ncftp.com / ftp.ncftp.com.zip / ftp.ncftp.com / libncftp / libncftp-3.2.5-src.zip / libncftp-3.2.5 / Strn / syshdrs.h < prev    next >
C/C++ Source or Header  |  2009-11-30  |  2KB  |  77 lines

  1. /* syshdrs.h
  2.  *
  3.  * Copyright (c) 1996-2004 Mike Gleason, NcFTP Software.
  4.  * All rights reserved.
  5.  *
  6.  */
  7. #if (defined(WIN32) || defined(_WINDOWS)) && !defined(__CYGWIN__)
  8. #    pragma once
  9. #    define _CRT_SECURE_NO_WARNINGS 1
  10. #    ifndef __MINGW32__
  11. #        pragma warning(disable : 4127)    // warning C4127: conditional expression is constant
  12. #        pragma warning(disable : 4100)    // warning C4100: 'lpReserved' : unreferenced formal parameter
  13. #        pragma warning(disable : 4514)    // warning C4514: unreferenced inline function has been removed
  14. #        pragma warning(disable : 4115)    // warning C4115: '_RPC_ASYNC_STATE' : named type definition in parentheses
  15. #        pragma warning(disable : 4201)    // warning C4201: nonstandard extension used : nameless struct/union
  16. #        pragma warning(disable : 4214)    // warning C4214: nonstandard extension used : bit field types other than int
  17. #        pragma warning(disable : 4115)    // warning C4115: 'IRpcStubBuffer' : named type definition in parentheses
  18. #    endif
  19.     /* We now try for at least Windows 2000 compatibility (0x0500).
  20.      * The code will still work on older systems, though.
  21.      * Prior versions used 0x0400 instead.
  22.      */
  23. #    ifndef WINVER
  24. #        define WINVER 0x0500
  25. #    endif
  26. #    ifndef _WIN32_WINNT
  27. #        define _WIN32_WINNT 0x0500
  28. #    endif
  29. #    include <windows.h>
  30. #    include <sys/types.h>
  31. #    include <errno.h>
  32. #    include <stdio.h>
  33. #    include <string.h>
  34. #    include <stddef.h>
  35. #    include <stdlib.h>
  36. #    include <ctype.h>
  37. #    include <stdarg.h>
  38. #    ifndef strcasecmp
  39. #        define strcasecmp _stricmp
  40. #        define strncasecmp _strnicmp
  41. #    endif
  42. #    ifndef strdup
  43. #        define strdup _strdup
  44. #    endif
  45. #    define HAVE_STRDUP 1
  46. #else /* ---------------------------- UNIX ---------------------------- */
  47. #    if defined(HAVE_CONFIG_H)
  48. #        include <config.h>
  49. #    endif
  50. #    if defined(AIX) || defined(_AIX) || defined(__HOS_AIX__)
  51. #        define _ALL_SOURCE 1
  52. #    endif
  53. #    ifdef HAVE_UNISTD_H
  54. #        include <unistd.h>
  55. #    endif
  56. #    include <sys/types.h>
  57. #    include <errno.h>
  58. #    include <stdio.h>
  59. #    include <string.h>
  60. #    ifdef HAVE_STRINGS_H
  61. #        include <strings.h>
  62. #    endif
  63. #    include <stddef.h>
  64. #    include <stdlib.h>
  65. #    include <ctype.h>
  66. #    include <stdarg.h>
  67. #endif /* ---------------------------- UNIX ---------------------------- */
  68.  
  69. #include "DStrInternal.h"
  70. #include "Strn.h"
  71.  
  72. #ifndef HAVE_STRDUP
  73. extern char *strdup(const char *const src);
  74. #endif
  75.  
  76. /* eof */
  77.