2007-10-26 17:38:36 +00:00
|
|
|
#include "stdint.h"
|
|
|
|
|
|
|
|
#ifdef __MINGW32__
|
|
|
|
# define EXPORT __declspec(dllexport)
|
2007-10-26 21:02:39 +00:00
|
|
|
# define SYMBOL(x) binary_classpath_jar_##x
|
2007-10-26 17:38:36 +00:00
|
|
|
#else
|
|
|
|
# define EXPORT __attribute__ ((visibility("default")))
|
2007-10-26 21:02:39 +00:00
|
|
|
# define SYMBOL(x) _binary_classpath_jar_##x
|
2007-10-26 17:38:36 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
|
2007-10-26 22:10:12 +00:00
|
|
|
#ifndef __APPLE__
|
2007-10-26 21:02:39 +00:00
|
|
|
extern const uint8_t SYMBOL(start)[];
|
|
|
|
extern const uint8_t SYMBOL(size)[];
|
2007-10-26 17:38:36 +00:00
|
|
|
|
2007-10-26 21:02:39 +00:00
|
|
|
EXPORT const uint8_t*
|
|
|
|
vmClasspath(unsigned* size)
|
|
|
|
{
|
|
|
|
*size = reinterpret_cast<uintptr_t>(SYMBOL(size));
|
|
|
|
return SYMBOL(start);
|
|
|
|
}
|
2007-10-26 22:10:12 +00:00
|
|
|
#endif
|
2007-10-26 17:38:36 +00:00
|
|
|
|
|
|
|
} // extern "C"
|