X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Ftypes.h;h=9fb00ec7f09b2719be6f79991ea4e3960bd81381;hb=c8689f0335cd584d24570046c6eb5a3b75701305;hp=acc2c236f35a3f06ba434e90c973015bb9bcaa63;hpb=f6bcc10ce7b517f04eb5cddf01c9ec29ee729b7e;p=rocksndiamonds.git diff --git a/src/libgame/types.h b/src/libgame/types.h index acc2c236..9fb00ec7 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 // ============================================================================ @@ -18,9 +18,9 @@ #include #include -typedef int boolean; -#if !defined(PLATFORM_WIN32) +#if !defined(PLATFORM_WINDOWS) +typedef int boolean; typedef unsigned char byte; #endif @@ -64,8 +64,7 @@ typedef unsigned char byte; #define EVEN(a) (((a) & 1) == 0) #endif -#define SIZEOF_ARRAY(array, type) (sizeof(array) / sizeof(type)) -#define SIZEOF_ARRAY_INT(array) SIZEOF_ARRAY(array, int) +#define ARRAY_SIZE(array) (sizeof(array) / sizeof(array[0])) struct ListNode @@ -77,4 +76,4 @@ struct ListNode }; typedef struct ListNode ListNode; -#endif /* TYPES_H */ +#endif // TYPES_H