certik / yaml-cpp

Automatically exported from code.google.com/p/yaml-cpp
MIT License
0 stars 0 forks source link

Non-unique enumeration types cause conflicts with other libraries #252

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
yaml-cpp uses "None" in several enumerations which conflicts with the X11 
#define of "None".

This stack overflow question explains the issue (not related to yaml-cpp 
specifically, but the problem is the same):
http://stackoverflow.com/questions/7017518/c-file-will-not-compile-with-a-certai
n-include-while-all-others-do

Original issue reported on code.google.com by jwbdec...@gmail.com on 8 Jul 2014 at 4:53

GoogleCodeExporter commented 9 years ago
This is really a bug in X11, not yaml-cpp - you should file a bug there (it's 
bad form to leak preprocessor definitions of common words).

That said, it seems reasonable to change the name of yaml-cpp's enum to be a 
nice citizen.

Original comment by jbe...@gmail.com on 8 Jul 2014 at 5:16

GoogleCodeExporter commented 9 years ago
Fixed, rf106a1c4221496d881e95eef3f47924e8d7e14d2.

Original comment by jbe...@gmail.com on 24 Jan 2015 at 9:59