mirror of
https://github.com/corda/corda.git
synced 2025-06-18 23:28:21 +00:00
Factored JNIEXPORT into one place. Adopted the visbility attribute that
should allow strip to work on Mac OS X
This commit is contained in:
11
src/common.h
11
src/common.h
@ -10,6 +10,17 @@
|
||||
#include "types.h"
|
||||
#include "math.h"
|
||||
|
||||
#undef JNIEXPORT
|
||||
#ifdef __MINGW32__
|
||||
# define JNIEXPORT __declspec(dllexport)
|
||||
#else
|
||||
#ifdef __APPLE__
|
||||
# define JNIEXPORT __attribute__ ((visibility("used")))
|
||||
#else
|
||||
# define JNIEXPORT __attribute__ ((visibility("default")))
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef __i386__
|
||||
# define LD "d"
|
||||
#ifdef __APPLE__
|
||||
|
Reference in New Issue
Block a user