Skip to content

Instantly share code, notes, and snippets.

@nzhuk
Created February 19, 2012 07:59
Show Gist options
  • Save nzhuk/1862529 to your computer and use it in GitHub Desktop.
Save nzhuk/1862529 to your computer and use it in GitHub Desktop.
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