Re: [AD] Cant #define types on osx

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


hm, not sure why this email made it to the list twice. i sent this yesterday but I only just got it. wierd.. anyway theres another email that says to ignore this one.

Jon Rafkind wrote:

I just checked allegro 4.2 out on osx and compiled it fine but when I tried to compile DUMB, or any of my Allegro programs, I got this error:

/usr/local/include/allegro/platform/astdint.h:44:5: #error I dunno how to get the definitions of fixed-width integer types on your platform. Please report this to your friendly Allegro developer.

I seem to have /usr/include/stdint.h so I added

#define HAVE_STDINT_H

to include/internal/alconfig.h so that astdint.h would pick up stdint.h which fixed the problem. alconfig.h:

#if defined HAVE_INTTYPES_H
  #include <inttypes.h>
#elif defined HAVE_STDINT_H
  #include <stdint.h>
#elif defined ALLEGRO_I386 && defined ALLEGRO_LITTLE_ENDIAN
...
#endif

But my question is why wasnt this picked up in the first place and how did the Allegro examples compile if this error would show up when compiling any program that include <allegro.h>?


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/