Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.4 KiB

  1. #ifndef __glumystring_h_
  2. #define __glumystring_h_
  3. /**************************************************************************
  4. * *
  5. * Copyright (C) 1992, Silicon Graphics, Inc. *
  6. * *
  7. * These coded instructions, statements, and computer programs contain *
  8. * unpublished proprietary information of Silicon Graphics, Inc., and *
  9. * are protected by Federal copyright law. They may not be disclosed *
  10. * to third parties or copied or duplicated in any form, in whole or *
  11. * in part, without the prior written consent of Silicon Graphics, Inc. *
  12. * *
  13. **************************************************************************/
  14. /*
  15. * mystring.h - $Revision: 1.1 $
  16. */
  17. #ifdef STANDALONE
  18. #ifndef _SIZE_T_DEFINED
  19. #ifdef _WIN64
  20. typedef unsigned __int64 size_t;
  21. #else
  22. typedef unsigned int size_t;
  23. #endif
  24. #define _SIZE_T_DEFINED
  25. #endif
  26. #ifdef NT
  27. extern "C" void * GLOS_CCALL memcpy(void *, const void *, size_t);
  28. extern "C" void * GLOS_CCALL memset(void *, int, size_t);
  29. #else
  30. extern "C" void * memcpy(void *, const void *, size_t);
  31. extern "C" void * memset(void *, int, size_t);
  32. #endif
  33. #endif
  34. #ifdef GLBUILD
  35. #define memcpy(a,b,c) bcopy(b,a,c)
  36. #define memset(a,b,c) bzero(a,c)
  37. extern "C" void bcopy(const void *, void *, int);
  38. extern "C" void bzero(void *, int);
  39. #endif
  40. #ifdef LIBRARYBUILD
  41. #include <string.h>
  42. #endif
  43. #endif /* __glumystring_h_ */