Re: ghc passing -undef to preprocessor and thereby eliminating OS specific defines

2013-01-24 Thread Simon Marlow
On 24/01/13 11:21, Nathan Hüsken wrote: Hey, I am trying to adapt some code in the libraries when compiling for android (i.E. because some things are different on android to other posix systems). So in C code I would just do "#ifdef __ANDROID__". While in the *.h and *.c files it seems to work,

ghc passing -undef to preprocessor and thereby eliminating OS specific defines

2013-01-24 Thread Nathan Hüsken
Hey, I am trying to adapt some code in the libraries when compiling for android (i.E. because some things are different on android to other posix systems). So in C code I would just do "#ifdef __ANDROID__". While in the *.h and *.c files it seems to work, it does not work in *.hs files. I noted t