Open Source Tomb Raider Engine
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

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