]> git.tdb.fi Git - libs/core.git/commitdiff
Use a const variable instead of #define
authorMikko Rasa <tdb@tdb.fi>
Sun, 31 Oct 2021 11:29:36 +0000 (13:29 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sun, 31 Oct 2021 18:27:42 +0000 (20:27 +0200)
source/io/unix/handle_platform.h

index b241669e93e7bf8d865acfad01ae2043fa907897..4254687623215443b03e5f83215c4929b73da2de 100644 (file)
@@ -6,7 +6,7 @@ namespace IO {
 
 typedef int PlatformHandle;
 
-#define INVALID_HANDLE_VALUE -1
+const PlatformHandle INVALID_HANDLE_VALUE = -1;
 
 } // namespace IO
 } // namespace Msp