jniport.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*******************************************************************************
  2. * Licensed Materials - Property of IBM
  3. * "Restricted Materials of IBM"
  4. *
  5. * (c) Copyright IBM Corp. 1991, 2015 All Rights Reserved
  6. *
  7. * US Government Users Restricted Rights - Use, duplication or disclosure
  8. * restricted by GSA ADP Schedule Contract with IBM Corp.
  9. *******************************************************************************/
  10. #ifndef jniport_h
  11. #define jniport_h
  12. #if defined(WIN32) || (defined(_WIN32)) || defined(RIM386) || (defined(BREW) && defined(AEE_SIMULATOR))
  13. #define JNIEXPORT __declspec(dllexport)
  14. #define JNICALL __stdcall
  15. typedef signed char jbyte;
  16. typedef int jint;
  17. typedef __int64 jlong;
  18. #else
  19. #define JNIEXPORT
  20. typedef signed char jbyte;
  21. typedef long long jlong;
  22. #ifdef BREW
  23. #include "AEEFile.h"
  24. #define FILE IFile
  25. #endif
  26. typedef int jint;
  27. #endif /* WIN32 */
  28. #ifndef JNICALL
  29. #define JNICALL
  30. #endif
  31. #ifndef JNIEXPORT
  32. #define JNIEXPORT
  33. #endif
  34. #ifndef JNIIMPORT
  35. #define JNIIMPORT
  36. #endif
  37. #ifdef _JNI_IMPLEMENTATION_
  38. #define _JNI_IMPORT_OR_EXPORT_ JNIEXPORT
  39. #else
  40. #define _JNI_IMPORT_OR_EXPORT_ JNIIMPORT
  41. #endif
  42. #endif /* jniport_h */