Open Source Tomb Raider Engine
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.

endian.h 894B

12345678910111213141516171819202122232425262728293031323334
  1. /*==========================================================================
  2. *
  3. * Project : MDDC
  4. * Author : Terry 'Mongoose' Hendrix II
  5. * Website : http://www.westga.edu/~stu7440
  6. * Email : stu7440@westga.edu
  7. * Object :
  8. * Comments: This is the endian utils.
  9. *
  10. * See file COPYING for license details.
  11. *
  12. * Based on type converting code by:
  13. * Michael Vance <mkv102@psu.edu>
  14. *
  15. *-- History ----------------------------------------------------------
  16. *
  17. * See the source file's header.
  18. ==========================================================================*/
  19. #ifndef __MONGOOSE_ENDIAN_H
  20. #define __MONGOOSE_ENDIAN_H
  21. #include <stdio.h>
  22. // Disable name mangling
  23. extern "C"
  24. {
  25. int fread_float_small(float *ptr, FILE *stream);
  26. int fread_int_small(int *ptr, FILE *stream);
  27. int fread_u_int_small(unsigned int *ptr, FILE *stream);
  28. }
  29. #endif