added optional button to restart game (door, panel and touch variants)
[rocksndiamonds.git] / src / libgame / types.h
index 62752f1fe8007ca150a4c3513a97c03e97cda56d..0c935a21efd2d6e78e4304559643a74b251312d9 100644 (file)
@@ -19,7 +19,7 @@
 #include <sys/types.h>
 
 
-#if !defined(PLATFORM_WIN32)
+#if !defined(PLATFORM_WINDOWS)
 typedef int boolean;
 typedef unsigned char byte;
 #endif
@@ -41,11 +41,11 @@ typedef unsigned char byte;
 #define AUTO           -1
 
 #ifndef MIN
-#define MIN(a,b)       ((a) < (b) ? (a) : (b))
+#define MIN(a, b)      ((a) < (b) ? (a) : (b))
 #endif
 
 #ifndef MAX
-#define MAX(a,b)       ((a) > (b) ? (a) : (b))
+#define MAX(a, b)      ((a) > (b) ? (a) : (b))
 #endif
 
 #ifndef ABS
@@ -76,4 +76,11 @@ struct ListNode
 };
 typedef struct ListNode ListNode;
 
+struct DelayCounter
+{
+  unsigned int value;
+  unsigned int count;
+};
+typedef struct DelayCounter DelayCounter;
+
 #endif // TYPES_H