Files
SDL/include
Sam Lantinga 1374682c44 Fixed bug #176
[I'm fixing this for the public headers, but I'm not going to bother for the SDL library code (yet)]

To clarify: Normaly, GCC (or, to be precise, the preprocessor) will ignore
this, and compile the code happily. However, one can specify -Wundef to get a
warning about this.

One can probably argue whether to consider this a bug or not; but I think that
(a) from a semantic point of view, using "#if FOO" when FOO is not defined is
strange, and (b) since it is possible to trigger a warning about this, and a
trivial fix exists, it should be corrected.

I can think of two alternative patches, BTW:
1) Simply use #define HAVE_FOO 0, instead of not defining HAVE_FOO at all
2) Change
  #if HAVE_FOO
to
  #if HAVE_FOO+0
which always does the right thing.

But I think I still prefer the attached patch :-).
2006-04-13 13:38:40 +00:00
..
2006-03-23 21:39:58 +00:00
2006-04-13 13:08:26 +00:00
2006-04-12 14:38:47 +00:00
2006-04-13 13:38:40 +00:00
2006-03-23 21:28:33 +00:00
2006-02-24 10:23:49 +00:00
2006-03-13 01:41:32 +00:00
2006-03-05 22:18:15 +00:00
2006-04-12 14:37:05 +00:00
2006-03-21 08:54:50 +00:00
2006-04-13 13:38:40 +00:00
2006-04-13 13:38:40 +00:00
2006-02-10 03:19:02 +00:00
2006-02-24 08:17:28 +00:00