From: Dan F. <da...@co...> - 2012-05-24 07:24:57
|
On Wed, May 23, 2012 at 06:36:55PM -0700, exif par wrote: > Using autoconf, I was able to generate a config file. I renamed some of the > basic C header files such as sys/types.h, stdint.h, libintl.h to simulate the > MSVS building environment. In this build environment, config.h is not generated > correctly. In MSVS 2008, "inline", "snprintf" and "size_t" keywords are not > defined. We need to provide those definitions as follows: > > #define inline __inline > #define snprintf _snprintf > typedef int64_t ssize_t; > > Can autoconf generate these #define's? autoconf should be defining the first and last of these (although, not the way you have done). snprintf is C99, so it should exist--there's no workaround when it doesn't. There shouldn't be any references to stdint.h and libintl.h if they doen't exist--sys/types.h is pretty commonly available, but it's only used in one place in the code so we could work around not having it. You should be able to tell from config.log why the others aren't being generated properly. >>> Dan |