Do typedef after the enum declaration, for C++ compatibility.

This commit is contained in:
Nils O. Selåsdal
2013-12-23 23:25:37 +01:00
parent 4225dd4ed1
commit ebb2640180
+1 -1
View File
@@ -5,11 +5,11 @@
extern "C" { extern "C" {
#endif #endif
typedef enum RBColor RBColor;
enum RBColor { enum RBColor {
Red, Red,
Black Black
}; };
typedef enum RBColor RBColor;
typedef struct RBNode RBNode; typedef struct RBNode RBNode;
struct RBNode { struct RBNode {