jni_md.h 824 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. * Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved.
  3. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  4. *
  5. *
  6. *
  7. *
  8. *
  9. *
  10. *
  11. *
  12. *
  13. *
  14. *
  15. *
  16. *
  17. *
  18. *
  19. *
  20. *
  21. *
  22. *
  23. *
  24. */
  25. #ifndef _JAVASOFT_JNI_MD_H_
  26. #define _JAVASOFT_JNI_MD_H_
  27. #ifndef __has_attribute
  28. #define __has_attribute(x) 0
  29. #endif
  30. #if (defined(__GNUC__) && ((__GNUC__ > 4) || (__GNUC__ == 4) && (__GNUC_MINOR__ > 2))) || __has_attribute(visibility)
  31. #define JNIEXPORT __attribute__((visibility("default")))
  32. #define JNIIMPORT __attribute__((visibility("default")))
  33. #else
  34. #define JNIEXPORT
  35. #define JNIIMPORT
  36. #endif
  37. #define JNICALL
  38. typedef int jint;
  39. #ifdef _LP64 /* 64-bit Solaris */
  40. typedef long jlong;
  41. #else
  42. typedef long long jlong;
  43. #endif
  44. typedef signed char jbyte;
  45. #endif /* !_JAVASOFT_JNI_MD_H_ */