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.

53 lines
1.3 KiB

  1. #ifndef __glumystdlib_h_
  2. #define __glumystdlib_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. * mystdlib.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. extern "C" void abort( void );
  27. extern "C" void * malloc( size_t );
  28. extern "C" void free( void * );
  29. #endif
  30. #ifdef LIBRARYBUILD
  31. #include <stdlib.h>
  32. #endif
  33. #ifdef GLBUILD
  34. #ifndef _SIZE_T_DEFINED
  35. #ifdef _WIN64
  36. typedef unsigned __int64 size_t;
  37. #else
  38. typedef unsigned int size_t;
  39. #endif
  40. #define _SIZE_T_DEFINED
  41. #endif
  42. extern "C" void abort( void );
  43. extern "C" void * malloc( size_t );
  44. extern "C" void free( void * );
  45. #endif
  46. #endif /* __glumystdlib_h_ */