Source code of Windows XP (NT5)
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.

62 lines
1.1 KiB

  1. /****************************************************************************
  2. *
  3. * $Archive: S:/STURGEON/SRC/Q931/VCS/common.h_v $
  4. *
  5. * INTEL Corporation Prorietary Information
  6. *
  7. * This listing is supplied under the terms of a license agreement
  8. * with INTEL Corporation and may not be copied nor disclosed except
  9. * in accordance with the terms of that agreement.
  10. *
  11. * Copyright (c) 1993-1996 Intel Corporation.
  12. *
  13. * $Revision: 1.4 $
  14. * $Date: 31 May 1996 15:48:44 $
  15. * $Author: rodellx $
  16. *
  17. * Deliverable:
  18. *
  19. * Abstract:
  20. *
  21. *
  22. * Notes:
  23. *
  24. ***************************************************************************/
  25. #ifndef COMMON_H
  26. #define COMMON_H
  27. #ifdef __cplusplus
  28. extern "C" {
  29. #endif
  30. #ifdef DBG
  31. // #include <crtdbg.h>
  32. #define Malloc(size) malloc(size)
  33. #define Free(p) free(p)
  34. //#define Malloc(size) _malloc_dbg((size), _NORMAL_BLOCK, __FILE__, __LINE__)
  35. //#define Free(p) _free_dbg((p), _NORMAL_BLOCK)
  36. #else
  37. //#define Malloc(size) GlobalAlloc(GMEM_FIXED, size)
  38. //#define Free(p) GlobalFree(p)
  39. #define Malloc(size) malloc(size)
  40. #define Free(p) free(p)
  41. #endif
  42. #ifdef __cplusplus
  43. }
  44. #endif
  45. #endif COMMON_H