mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +00:00
789cc8e9a2
rely on external files.
26 lines
520 B
C++
26 lines
520 B
C++
#include "stdint.h"
|
|
|
|
#ifdef __MINGW32__
|
|
# define EXPORT __declspec(dllexport)
|
|
# define SYMBOL(x) binary_classpath_jar_##x
|
|
#else
|
|
# define EXPORT __attribute__ ((visibility("default")))
|
|
# define SYMBOL(x) _binary_classpath_jar_##x
|
|
#endif
|
|
|
|
extern "C" {
|
|
|
|
#ifndef __APPLE__
|
|
extern const uint8_t SYMBOL(start)[];
|
|
extern const uint8_t SYMBOL(size)[];
|
|
|
|
EXPORT const uint8_t*
|
|
vmClasspath(unsigned* size)
|
|
{
|
|
*size = reinterpret_cast<uintptr_t>(SYMBOL(size));
|
|
return SYMBOL(start);
|
|
}
|
|
#endif
|
|
|
|
} // extern "C"
|