Mercurial > sdl-ios-xcode
annotate .cvsignore @ 1626:a80e1e0880b8
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 :-).
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 13 Apr 2006 13:38:40 +0000 |
parents | b70cce8d7f62 |
children |
rev | line source |
---|---|
0 | 1 aclocal.m4 |
1015
9454950842ae
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
1001
diff
changeset
|
2 autom4te* |
0 | 3 config.cache |
1015
9454950842ae
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
1001
diff
changeset
|
4 config.log |
9454950842ae
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
1001
diff
changeset
|
5 config.status |
9454950842ae
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
1001
diff
changeset
|
6 configure |
0 | 7 libtool |
8 Makefile | |
9 sdl-config | |
10 SDL.spec | |
703
ca809c1b41ca
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
596
diff
changeset
|
11 SDL.qpg |
1404
6f6c8ac0db15
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
1380
diff
changeset
|
12 build |
1410
93c48ff6d41f
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
1404
diff
changeset
|
13 build-deps |
1605 | 14 VisualC |
15 VisualCE | |
16 Xcode | |
596
475f969e8c01
CVS should ignore files automatically generated by building on MacOS X
Sam Lantinga <slouken@libsdl.org>
parents:
0
diff
changeset
|
17 .DS_Store |