Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
clang 3.1 preprocessor inserts extra spaces?
$ cat foo.h
#define VALUE 2012-02-19
Output: VALUE
$ clang -E -P foo.h
Output: 2012 -02 -19
$ gcc -E -P foo.h
Output: 2012-02-19
$ clang --version
Apple clang version 3.1 (tags/Apple/clang-318.0.45) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin11.3.0
Thread model: posix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment