jni_md.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*========================================================================
  2. * Licensed Materials - Property of IBM
  3. * "Restricted Materials of IBM"
  4. *
  5. * IBM SDK, Java(tm) Technology Edition, v8
  6. * (C) Copyright IBM Corp. 2000, 2014. All Rights Reserved
  7. *
  8. * US Government Users Restricted Rights - Use, duplication or disclosure
  9. * restricted by GSA ADP Schedule Contract with IBM Corp.
  10. *========================================================================
  11. */
  12. /*
  13. * Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved.
  14. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  15. *
  16. *
  17. *
  18. *
  19. *
  20. *
  21. *
  22. *
  23. *
  24. *
  25. *
  26. *
  27. *
  28. *
  29. *
  30. *
  31. *
  32. *
  33. *
  34. *
  35. */
  36. #ifndef _JAVASOFT_JNI_MD_H_
  37. #define _JAVASOFT_JNI_MD_H_
  38. #ifndef __has_attribute
  39. #define __has_attribute(x) 0
  40. #endif
  41. #if (defined(__GNUC__) && ((__GNUC__ > 4) || (__GNUC__ == 4) && (__GNUC_MINOR__ > 2))) || __has_attribute(visibility)
  42. #define JNIEXPORT __attribute__((visibility("default")))
  43. #define JNIIMPORT __attribute__((visibility("default")))
  44. #else
  45. #define JNIEXPORT
  46. #define JNIIMPORT
  47. #endif
  48. #define JNICALL
  49. typedef int jint;
  50. #ifdef _LP64 /* 64-bit Solaris */
  51. typedef long jlong;
  52. #else
  53. typedef long long jlong;
  54. #endif
  55. typedef signed char jbyte;
  56. #endif /* !_JAVASOFT_JNI_MD_H_ */