summaryrefslogtreecommitdiffstats
path: root/tests/callbacks2.proto
AgeCommit message (Collapse)AuthorFilesLines
2012-11-16Fix STATIC_ASSERT macro when using multiple .proto files.Steffen Siering1-0/+9
The __COUNTER__ macro (used for generating unique names) is at least supported by gcc, clang and Visual Studio. With this change test_compiles.c is compilable, since no more typedefs are redefined. Compilers/Preprocessors not supporting __COUNTER__ error's are still possible which are hopfully handled by the usage of __LINE__ in most sittuations. Added unit test for the problem.