From 534b340dd75558caa597c527bad30b014fb31c64 Mon Sep 17 00:00:00 2001 From: Miguel Casas Date: Mon, 11 Nov 2024 17:40:46 -0800 Subject: [PATCH] starboard/types.h: Remove kSbInvalidInt (#4386) By inlining the necessary min-int equivalent. b/366064934 --- starboard/drm.h | 2 +- starboard/thread.h | 2 +- starboard/types.h | 3 --- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/starboard/drm.h b/starboard/drm.h index 9d9290bbe9ce..8051beef1c85 100644 --- a/starboard/drm.h +++ b/starboard/drm.h @@ -220,7 +220,7 @@ typedef void (*SbDrmServerCertificateUpdatedFunc)(SbDrmSystem drm_system, #define kSbDrmSystemInvalid ((SbDrmSystem)NULL) // A ticket for callback invocations initiated by the DRM system. -#define kSbDrmTicketInvalid kSbInvalidInt +#define kSbDrmTicketInvalid INT_MIN // --- Functions ------------------------------------------------------------- diff --git a/starboard/thread.h b/starboard/thread.h index 95b4bb085fc6..9247ffe9b8b2 100644 --- a/starboard/thread.h +++ b/starboard/thread.h @@ -73,7 +73,7 @@ typedef enum SbThreadPriority { // default priority assignment method of that platform. This may mean to // inherit the priority of the spawning thread, or it may mean a specific // default priority, or it may mean something else, depending on the platform. - kSbThreadNoPriority = kSbInvalidInt, + kSbThreadNoPriority = INT_MIN, } SbThreadPriority; // An ID type that is unique per thread. diff --git a/starboard/types.h b/starboard/types.h index c68621b10e5b..f22c02a6af15 100644 --- a/starboard/types.h +++ b/starboard/types.h @@ -55,9 +55,6 @@ typedef int64_t ssize_t; #endif #endif // !SB_HAS(SSIZE_T) -// A value that represents an int that is probably invalid. -#define kSbInvalidInt INT32_MIN - // --- Standard Include Emulation Audits --------------------------------------- #if (UINT_MIN + 1 == UINT_MAX - 1) || (INT_MIN + 1 == INT_MAX - 1) || \