typedef.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. ********************************************************************************
  3. *
  4. * GSM AMR-NB speech codec R98 Version 7.6.0 December 12, 2001
  5. * R99 Version 3.3.0
  6. * REL-4 Version 4.1.0
  7. *
  8. ********************************************************************************
  9. *
  10. * File : typedef.c
  11. * Purpose : Basic types.
  12. *
  13. ********************************************************************************
  14. */
  15. #ifndef typedef_h
  16. #define typedef_h "$Id $"
  17. #undef ORIGINAL_TYPEDEF_H /* define to get "original" ETSI version
  18. of typedef.h */
  19. #ifdef ORIGINAL_TYPEDEF_H
  20. /*
  21. * this is the original code from the ETSI file typedef.h
  22. */
  23. #if defined(__BORLANDC__) || defined(__WATCOMC__) || defined(_MSC_VER) || defined(__ZTC__)
  24. typedef signed char Word8;
  25. typedef short Word16;
  26. typedef long Word32;
  27. typedef int Flag;
  28. #elif defined(__sun)
  29. typedef signed char Word8;
  30. typedef short Word16;
  31. typedef long Word32;
  32. typedef int Flag;
  33. #elif defined(__unix__) || defined(__unix)
  34. typedef signed char Word8;
  35. typedef short Word16;
  36. typedef int Word32;
  37. typedef int Flag;
  38. #endif
  39. #else /* not original typedef.h */
  40. /*
  41. * use (improved) type definition file typdefs.h and add a "Flag" type
  42. */
  43. #include "typedefs.h"
  44. typedef int Flag;
  45. #endif
  46. #include "mallocSw.h"//if no this file,just include stdlib.h if system supported
  47. #endif