pretyman / spatialite-android

Automatically exported from code.google.com/p/spatialite-android
0 stars 0 forks source link

Reduce compiler warnings #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When I compiled geos for it I had loads of compiler warnings about the long 
long integer types. I think adding the following to the LOCAL_CFLAGS for geos 
compilation is the right definition for Android:

-DHAVE_LONG_LONG_INT_64

Original issue reported on code.google.com by LudwigBr...@gmail.com on 18 Sep 2011 at 3:58

GoogleCodeExporter commented 9 years ago
I don't think Android supports the long long datatype.

Original comment by efroh...@gmail.com on 11 Oct 2011 at 7:58

GoogleCodeExporter commented 9 years ago
include <sys/limits.h>

long long int hello;
hello = LLONG_MAX;

This certainly compiles in the NDK. Longs are 64 bit in Java (also on Android), 
so it is not such a surprise to have 64 bit data types supported in the NDK.

Original comment by LudwigBr...@gmail.com on 16 Oct 2011 at 1:33

GoogleCodeExporter commented 9 years ago
Added to android build -DHAVE_LONG_LONG_INT_64

Original comment by efroh...@gmail.com on 30 Jan 2012 at 1:11