stdtypedefs.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /**
  2. * PANDA 3D SOFTWARE
  3. * Copyright (c) Carnegie Mellon University. All rights reserved.
  4. *
  5. * All use of this software is subject to the terms of the revised BSD
  6. * license. You should have received a copy of this license along
  7. * with this source code in a file named "LICENSE."
  8. *
  9. * @file stdtypedefs.h
  10. * @author drose
  11. * @date 2000-05-12
  12. */
  13. // This file, and all the other files in this directory, aren't
  14. // intended to be compiled--they're just parsed by CPPParser (and
  15. // interrogate) in lieu of the actual system headers, to generate the
  16. // interrogate database.
  17. #ifndef STDTYPEDEFS_H
  18. #define STDTYPEDEFS_H
  19. typedef long time_t;
  20. typedef long clock_t;
  21. typedef unsigned int uint;
  22. typedef unsigned long ulong;
  23. typedef unsigned short ushort;
  24. typedef unsigned char uchar;
  25. inline namespace std {
  26. #ifdef _WIN64
  27. typedef unsigned long long size_t;
  28. typedef long long ssize_t;
  29. typedef long long ptrdiff_t;
  30. #else
  31. typedef unsigned long size_t;
  32. typedef long ssize_t;
  33. typedef long ptrdiff_t;
  34. #endif
  35. }
  36. struct timeval;
  37. #ifdef __cplusplus
  38. #define NULL 0L
  39. #else
  40. #define NULL ((void *)0)
  41. #endif
  42. typedef decltype(nullptr) nullptr_t;
  43. // One day, we might extend interrogate to be able to parse this,
  44. // but we currently don't need it.
  45. #define alignas(x)
  46. #endif