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" {
#endif
typedef enum RBColor RBColor;
enum RBColor {
Red,
Black
};
typedef enum RBColor RBColor;
typedef struct RBNode RBNode;
struct RBNode {