2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2011-04-05 14:12:31 -07:00
|
|
|
* Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
|
2007-12-01 00:00:00 +00:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
|
|
*
|
|
|
|
* This code is free software; you can redistribute it and/or modify it
|
|
|
|
* under the terms of the GNU General Public License version 2 only, as
|
2010-05-27 19:08:38 -07:00
|
|
|
* published by the Free Software Foundation. Oracle designates this
|
2007-12-01 00:00:00 +00:00
|
|
|
* particular file as subject to the "Classpath" exception as provided
|
2010-05-27 19:08:38 -07:00
|
|
|
* by Oracle in the LICENSE file that accompanied this code.
|
2007-12-01 00:00:00 +00:00
|
|
|
*
|
|
|
|
* This code is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
|
|
* version 2 for more details (a copy is included in the LICENSE file that
|
|
|
|
* accompanied this code).
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License version
|
|
|
|
* 2 along with this work; if not, write to the Free Software Foundation,
|
|
|
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*
|
2010-05-27 19:08:38 -07:00
|
|
|
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
|
|
|
* or visit www.oracle.com if you need additional information or have any
|
|
|
|
* questions.
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _JAVASOFT_JNI_MD_H_
|
|
|
|
#define _JAVASOFT_JNI_MD_H_
|
|
|
|
|
2011-09-25 16:03:29 -07:00
|
|
|
#if defined(SOLARIS) || defined(LINUX) || defined(_ALLBSD_SOURCE)
|
2011-02-01 11:23:19 -05:00
|
|
|
|
|
|
|
#if defined(__GNUC__) && (__GNUC__ > 4) || (__GNUC__ == 4) && (__GNUC_MINOR__ > 2)
|
|
|
|
#define JNIEXPORT __attribute__((visibility("default")))
|
|
|
|
#define JNIIMPORT __attribute__((visibility("default")))
|
|
|
|
#else
|
2007-12-01 00:00:00 +00:00
|
|
|
#define JNIEXPORT
|
|
|
|
#define JNIIMPORT
|
2011-02-01 11:23:19 -05:00
|
|
|
#endif
|
2007-12-01 00:00:00 +00:00
|
|
|
|
2011-02-01 11:23:19 -05:00
|
|
|
#define JNICALL
|
2007-12-01 00:00:00 +00:00
|
|
|
typedef int jint;
|
2011-10-13 09:35:42 -07:00
|
|
|
#if defined(_LP64) && !defined(__APPLE__)
|
2008-12-24 19:13:53 -08:00
|
|
|
typedef long jlong;
|
|
|
|
#else
|
2011-10-13 09:35:42 -07:00
|
|
|
/*
|
|
|
|
* On _LP64 __APPLE__ "long" and "long long" are both 64 bits,
|
|
|
|
* but we use the "long long" typedef to avoid complaints from
|
|
|
|
* the __APPLE__ compiler about fprintf formats.
|
|
|
|
*/
|
2007-12-01 00:00:00 +00:00
|
|
|
typedef long long jlong;
|
2008-12-24 19:13:53 -08:00
|
|
|
#endif
|
|
|
|
|
2007-12-01 00:00:00 +00:00
|
|
|
#else
|
|
|
|
#define JNIEXPORT __declspec(dllexport)
|
|
|
|
#define JNIIMPORT __declspec(dllimport)
|
|
|
|
#define JNICALL __stdcall
|
|
|
|
|
|
|
|
typedef int jint;
|
|
|
|
typedef __int64 jlong;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef signed char jbyte;
|
|
|
|
|
|
|
|
#endif /* !_JAVASOFT_JNI_MD_H_ */
|