summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Lidén Borell <samuel@kodafritt.se>2014-04-08 07:49:53 +0200
committerSamuel Lidén Borell <samuel@kodafritt.se>2014-04-08 07:49:53 +0200
commit12a4d4c31e26666025488c658fb9a5b8fdbd57ed (patch)
treed976c6094018351c552245090f8d0ae98eed757e
parent52021c113db6e22bf3bc6f425507cdce94145a27 (diff)
downloadfribid-12a4d4c31e26666025488c658fb9a5b8fdbd57ed.tar.gz
fribid-12a4d4c31e26666025488c658fb9a5b8fdbd57ed.tar.bz2
fribid-12a4d4c31e26666025488c658fb9a5b8fdbd57ed.zip
Don't redefine SIZE_T_MAX
Thanks to Hellqvio for the patch!
-rw-r--r--client/misc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/misc.h b/client/misc.h
index 14e4281..100b016 100644
--- a/client/misc.h
+++ b/client/misc.h
@@ -27,7 +27,9 @@
#include <stdbool.h>
+#ifndef SIZE_T_MAX
#define SIZE_T_MAX ((size_t)-1)
+#endif
/**
* Adds to a size_t and checks for integer overflow