home *** CD-ROM | disk | FTP | other *** search
/ ftp.ncftp.com / ftp.ncftp.com.zip / ftp.ncftp.com / ncftp / older_versions / ncftp-3.2.2-src.tar.bz2 / ncftp-3.2.2-src.tar / ncftp-3.2.2 / Strn / syshdrs.h < prev   
C/C++ Source or Header  |  2008-07-13  |  2KB  |  67 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. #    pragma warning(disable : 4127)    // warning C4127: conditional expression is constant
  11. #    pragma warning(disable : 4100)    // warning C4100: 'lpReserved' : unreferenced formal parameter
  12. #    pragma warning(disable : 4514)    // warning C4514: unreferenced inline function has been removed
  13. #    pragma warning(disable : 4115)    // warning C4115: '_RPC_ASYNC_STATE' : named type definition in parentheses
  14. #    pragma warning(disable : 4201)    // warning C4201: nonstandard extension used : nameless struct/union
  15. #    pragma warning(disable : 4214)    // warning C4214: nonstandard extension used : bit field types other than int
  16. #    pragma warning(disable : 4115)    // warning C4115: 'IRpcStubBuffer' : named type definition in parentheses
  17. #    define WINVER 0x0400
  18. #    define _WIN32_WINNT 0x0400
  19. #    include <windows.h>
  20. #    include <sys/types.h>
  21. #    include <errno.h>
  22. #    include <stdio.h>
  23. #    include <string.h>
  24. #    include <stddef.h>
  25. #    include <stdlib.h>
  26. #    include <ctype.h>
  27. #    include <stdarg.h>
  28. #    ifndef strcasecmp
  29. #        define strcasecmp _stricmp
  30. #        define strncasecmp _strnicmp
  31. #    endif
  32. #    ifndef strdup
  33. #        define strdup _strdup
  34. #    endif
  35. #    define HAVE_STRDUP 1
  36. #else /* ---------------------------- UNIX ---------------------------- */
  37. #    if defined(HAVE_CONFIG_H)
  38. #        include <config.h>
  39. #    endif
  40. #    if defined(AIX) || defined(_AIX) || defined(__HOS_AIX__)
  41. #        define _ALL_SOURCE 1
  42. #    endif
  43. #    ifdef HAVE_UNISTD_H
  44. #        include <unistd.h>
  45. #    endif
  46. #    include <sys/types.h>
  47. #    include <errno.h>
  48. #    include <stdio.h>
  49. #    include <string.h>
  50. #    ifdef HAVE_STRINGS_H
  51. #        include <strings.h>
  52. #    endif
  53. #    include <stddef.h>
  54. #    include <stdlib.h>
  55. #    include <ctype.h>
  56. #    include <stdarg.h>
  57. #endif /* ---------------------------- UNIX ---------------------------- */
  58.  
  59. #include "DStrInternal.h"
  60. #include "Strn.h"
  61.  
  62. #ifndef HAVE_STRDUP
  63. extern char *strdup(const char *const src);
  64. #endif
  65.  
  66. /* eof */
  67.