From f746c6cfb251478c10fa5d2df2d92f8855cb7cdc Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 14 Jul 2015 22:15:29 +0200 Subject: Use GlueGen's JNI header for native compilation (java.includes.dir, java.includes.dir.platform) Using the same cross-platform JNI header for native compilation as for GlueGen code generation allows using a more determined (well defined) and simplified environment. --- test/native/sizeof_dump.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/native/sizeof_dump.c (limited to 'test') diff --git a/test/native/sizeof_dump.c b/test/native/sizeof_dump.c new file mode 100644 index 0000000..2d79aa7 --- /dev/null +++ b/test/native/sizeof_dump.c @@ -0,0 +1,18 @@ +#include +#include +#include + +int main(int argc, const char ** argv) { + printf("sizeof int: %lu\n", sizeof(int)); + printf("sizeof long: %lu\n", sizeof(long)); + printf("sizeof long long: %lu\n", sizeof(long long)); + printf("sizeof intptr_t: %lu\n", sizeof(intptr_t)); + printf("sizeof uintptr_t: %lu\n", sizeof(uintptr_t)); + printf("sizeof ptrdiff_t: %lu\n", sizeof(ptrdiff_t)); + printf("sizeof size_t: %lu\n", sizeof(size_t)); + printf("sizeof float: %lu\n", sizeof(float)); + printf("sizeof double: %lu\n", sizeof(double)); + printf("sizeof long double: %lu\n", sizeof(long double)); + + return 0; +} -- cgit v1.2.3