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.

32 lines
1.1 KiB

  1. /********************************************************
  2. * bltos.h
  3. *
  4. * os specific functionality for blitlib
  5. *
  6. * history
  7. * 7/7/95 created it myronth
  8. *
  9. * Copyright (c) Microsoft Corporation 1994-1995
  10. *
  11. *********************************************************/
  12. // Currently, DDraw is the only Win95 app linking with BlitLib
  13. // and it uses local memory allocation.
  14. // The following #define enables all other NT BlitLib applications to
  15. // link with it and get global memory allocation.
  16. #if WIN95 | MMOSA
  17. #include "memalloc.h"
  18. #define osMemAlloc MemAlloc
  19. #define osMemFree MemFree
  20. #define osMemReAlloc MemReAlloc
  21. #else
  22. #define osMemAlloc(size) LocalAlloc(LPTR,size)
  23. #define osMemFree LocalFree
  24. #define osMemReAlloc(ptr,size) LocalReAlloc((HLOCAL)ptr,size,LPTR)
  25. #endif