version 1.4.30b
[polyglot.git] / pgn.h
diff --git a/pgn.h b/pgn.h
index e79fc3f..0f51015 100644 (file)
--- a/pgn.h
+++ b/pgn.h
@@ -6,17 +6,17 @@
 \r
 // includes\r
 \r
-#include <cstdio>\r
+#include <stdio.h>\r
 \r
 #include "util.h"\r
 \r
-// constants\r
+// defines\r
 \r
-const int PGN_STRING_SIZE = 256;\r
+#define PGN_STRING_SIZE 256\r
 \r
 // types\r
 \r
-struct pgn_t {\r
+typedef struct {\r
 \r
    FILE * file;\r
 \r
@@ -40,7 +40,7 @@ struct pgn_t {
    int move_line;\r
    int move_column;\r
    int game_nb;\r
-};\r
+} pgn_t;\r
 \r
 // functions\r
 \r