Skip to content

Instantly share code, notes, and snippets.

@nzhuk nzhuk/gist:1862529
Created Feb 19, 2012

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
You can’t perform that action at this time.