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.

30 lines
798 B

  1. #ifndef _HOST_H_
  2. #define _HOST_H_
  3. #ifdef linux
  4. # include <math.h>
  5. typedef int BOOL;
  6. # define alloc_mem malloc
  7. # define free_mem free
  8. #endif
  9. #ifdef MSC
  10. # include <strmini.h>
  11. # include <ksmedia.h>
  12. __inline abort_execution() { }
  13. # ifdef DEBUG
  14. # define debug_printf(x) DbgPrint x
  15. # define debug_breakpoint() DbgBreakPoint()
  16. # else /*DEBUG*/
  17. # define debug_printf(x) /* nothing */
  18. # define debug_breakpoint() /* nothing */
  19. //__inline debug_printf(char *fmt, ...) { }
  20. //__inline char *flPrintf(double num, int prec) { }
  21. //__inline printf(const char *fmt, ...) { }
  22. # endif /*DEBUG*/
  23. # define alloc_mem(bytes) ExAllocatePool(NonPagedPool, (bytes))
  24. # define free_mem(ptr) ExFreePool(ptr)
  25. # define inline __inline
  26. #endif /*MSC*/
  27. #endif //_HOST_H_