home *** CD-ROM | disk | FTP | other *** search
/ ftp.ncftp.com / ftp.ncftp.com.zip / ftp.ncftp.com / libncftp / older_versions / libncftp-3.1.5-src.tar.gz / libncftp-3.1.5-src.tar / libncftp-3.1.5 / Strn / syshdrs.h < prev    next >
C/C++ Source or Header  |  2002-03-27  |  2KB  |  61 lines

  1. /* syshdrs.h
  2.  *
  3.  * Copyright (c) 2001 Mike Gleason, NCEMRSoft.
  4.  * All rights reserved.
  5.  *
  6.  */
  7. #if (defined(WIN32) || defined(_WINDOWS)) && !defined(__CYGWIN__)
  8. #    pragma once
  9. #    pragma warning(disable : 4127)    // warning C4127: conditional expression is constant
  10. #    pragma warning(disable : 4100)    // warning C4100: 'lpReserved' : unreferenced formal parameter
  11. #    pragma warning(disable : 4514)    // warning C4514: unreferenced inline function has been removed
  12. #    pragma warning(disable : 4115)    // warning C4115: '_RPC_ASYNC_STATE' : named type definition in parentheses
  13. #    pragma warning(disable : 4201)    // warning C4201: nonstandard extension used : nameless struct/union
  14. #    pragma warning(disable : 4214)    // warning C4214: nonstandard extension used : bit field types other than int
  15. #    pragma warning(disable : 4115)    // warning C4115: 'IRpcStubBuffer' : named type definition in parentheses
  16. #    define WINVER 0x0400
  17. #    define _WIN32_WINNT 0x0400
  18. #    include <windows.h>
  19. #    include <sys/types.h>
  20. #    include <errno.h>
  21. #    include <stdio.h>
  22. #    include <string.h>
  23. #    include <stddef.h>
  24. #    include <stdlib.h>
  25. #    include <ctype.h>
  26. #    include <stdarg.h>
  27. #    define strcasecmp stricmp
  28. #    define strncasecmp strnicmp
  29. #    define HAVE_STRDUP 1
  30. #else /* ---------------------------- UNIX ---------------------------- */
  31. #    if defined(HAVE_CONFIG_H)
  32. #        include <config.h>
  33. #    endif
  34. #    if defined(AIX) || defined(_AIX) || defined(__HOS_AIX__)
  35. #        define _ALL_SOURCE 1
  36. #    endif
  37. #    ifdef HAVE_UNISTD_H
  38. #        include <unistd.h>
  39. #    endif
  40. #    include <sys/types.h>
  41. #    include <errno.h>
  42. #    include <stdio.h>
  43. #    include <string.h>
  44. #    ifdef HAVE_STRINGS_H
  45. #        include <strings.h>
  46. #    endif
  47. #    include <stddef.h>
  48. #    include <stdlib.h>
  49. #    include <ctype.h>
  50. #    include <stdarg.h>
  51. #endif /* ---------------------------- UNIX ---------------------------- */
  52.  
  53. #include "DStrInternal.h"
  54. #include "Strn.h"
  55.  
  56. #ifndef HAVE_STRDUP
  57. extern char *strdup(const char *const src);
  58. #endif
  59.  
  60. /* eof */
  61.