[AD] Re: Cant #define types on osx

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


Nevermind about this, I had an older version of Allegro installed. rm -rf'ing /usr/local/include/allegro and reinstalling fixed it.

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>?





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