X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Ftypes.h;h=0c935a21efd2d6e78e4304559643a74b251312d9;hb=HEAD;hp=94fd58b645476cd690c5c17d17e5ac675b0fd410;hpb=055c4e48ddc47b9616c38cd5eeaf27f5b88c933b;p=rocksndiamonds.git diff --git a/src/libgame/types.h b/src/libgame/types.h index 94fd58b6..0c935a21 100644 --- a/src/libgame/types.h +++ b/src/libgame/types.h @@ -4,7 +4,7 @@ // (c) 1995-2014 by Artsoft Entertainment // Holger Schemel // info@artsoft.org -// http://www.artsoft.org/ +// https://www.artsoft.org/ // ---------------------------------------------------------------------------- // types.h // ============================================================================ @@ -19,7 +19,7 @@ #include -#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; -#endif /* TYPES_H */ +struct DelayCounter +{ + unsigned int value; + unsigned int count; +}; +typedef struct DelayCounter DelayCounter; + +#endif // TYPES_H