From 64b611a18e2425994e611b0af21e9c4362f9f207 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 19 Dec 2005 17:10:18 +0000 Subject: r12364: add UINT32_MAX and UINT64_MAX replacement defines (hopefully fix the build on OpenBSD) metze (This used to be commit cbe06ade214bd29eab5c11fcd011a3c463bf78db) --- source4/lib/replace/README | 2 ++ source4/lib/replace/replace.h | 8 ++++++++ 2 files changed, 10 insertions(+) (limited to 'source4') diff --git a/source4/lib/replace/README b/source4/lib/replace/README index 1e804d50e1..80a2d5c163 100644 --- a/source4/lib/replace/README +++ b/source4/lib/replace/README @@ -59,6 +59,8 @@ int{8,16,32,64}_t Constants: PATH_NAME_MAX UINT16_MAX +UINT32_MAX +UINT64_MAX Prerequisites: memset (for bzero) diff --git a/source4/lib/replace/replace.h b/source4/lib/replace/replace.h index fda494a444..0f1eb42ac0 100644 --- a/source4/lib/replace/replace.h +++ b/source4/lib/replace/replace.h @@ -170,4 +170,12 @@ int rep_mkstemp(char *temp); #define UINT16_MAX 65535 #endif +#ifndef UINT32_MAX +#define UINT32_MAX (4294967295U) +#endif + +#ifndef UINT64_MAX +#define UINT64_MAX ((uint64_t)-1) +#endif + #endif -- cgit