stddef.h 707 B

123456789101112131415161718192021222324252627
  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 stddef.h
  10. * @author drose
  11. * @date 2002-09-26
  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 STDDEF_H
  18. #define STDDEF_H
  19. #include <stdtypedefs.h>
  20. #define offsetof(type,member) ((size_t) &(((type*)0)->member))
  21. #endif