From: Mikko Rasa Date: Sun, 31 Oct 2021 11:29:36 +0000 (+0200) Subject: Use a const variable instead of #define X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=commitdiff_plain;h=35589b9f994ef827c34fe6ac91c8344c2a351412 Use a const variable instead of #define --- diff --git a/source/io/unix/handle_platform.h b/source/io/unix/handle_platform.h index b241669..4254687 100644 --- a/source/io/unix/handle_platform.h +++ b/source/io/unix/handle_platform.h @@ -6,7 +6,7 @@ namespace IO { typedef int PlatformHandle; -#define INVALID_HANDLE_VALUE -1 +const PlatformHandle INVALID_HANDLE_VALUE = -1; } // namespace IO } // namespace Msp