summaryrefslogtreecommitdiff
path: root/misc.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2019-07-14 00:52:30 -0400
committerJeffrey Walton <noloader@gmail.com>2019-07-14 00:52:30 -0400
commite8b07b162feb97d2cd1ec7ec35063e9348fc446d (patch)
tree06b5f570f48d3106760e62da012f0e9c7d4a5087 /misc.h
parent6ae9c055ccbcab97f07410590ed359e5726638b5 (diff)
downloadcryptopp-git-e8b07b162feb97d2cd1ec7ec35063e9348fc446d.tar.gz
Avoid preprocessor error in SIZE_MAX (GH #864)
Diffstat (limited to 'misc.h')
-rw-r--r--misc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc.h b/misc.h
index a90bdb75..706a1b47 100644
--- a/misc.h
+++ b/misc.h
@@ -117,9 +117,9 @@
// http://stackoverflow.com/questions/30472731/which-c-standard-header-defines-size-max
// Avoid NOMINMAX macro on Windows. http://support.microsoft.com/en-us/kb/143208
#ifndef SIZE_MAX
-# if defined(__SIZE_MAX__) && (__SIZE_MAX__ > 0)
+# if defined(__SIZE_MAX__)
# define SIZE_MAX __SIZE_MAX__
-# elif defined(SIZE_T_MAX) && (SIZE_T_MAX > 0)
+# elif defined(SIZE_T_MAX)
# define SIZE_MAX SIZE_T_MAX
# elif defined(__SIZE_TYPE__)
# define SIZE_MAX (~(__SIZE_TYPE__)0)