[SDL] #include "SDL.h"
stephane.marchesin at wanadoo.fr
Wed Nov 12 14:51:01 PST 2003
Jacek Popławski wrote:
>On Wed, Nov 12, 2003 at 04:30:46PM -0500, Glenn Maynard wrote:
>>>7) Exactly same problem with <SDL.h> and <SDL/SDL.h>. So changing "" into <>
>>>changes nothing in output, but adding 'SDL/' fixes warnings.
>>>Could anyone explain why this happen?
>>Not sure, but you probably shouldn't be using -pedantic to begin with.
>But why -pedantic produces error with <SDL.h> and does not with <SDL/SDL.h> ?
Look at the code by yourself in /usr/include/SDL/SDL_types.h :
#if defined(__GNUC__) || defined(__MWERKS__) || defined(__SUNPRO_C)
#define SDL_HAS_64BIT_TYPE long long
#elif defined(_MSC_VER) /* VC++ */
#define SDL_HAS_64BIT_TYPE __int64
#endif /* !__STRICT_ANSI__ */
Isn't pedantic some kind of "__STRICT_ANSI__" stuff ? ;)
More information about the SDL