diff options
author | Stefan Metzmacher <metze@samba.org> | 2005-12-19 17:10:18 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:47:31 -0500 |
commit | 64b611a18e2425994e611b0af21e9c4362f9f207 (patch) | |
tree | 2c2b44d02562e3d28c11ff6b00de7bcbc0a3c262 /source4/lib/replace/replace.h | |
parent | 636dbb355b2e96fd61b0fd042c3916a4735995e2 (diff) | |
download | samba-64b611a18e2425994e611b0af21e9c4362f9f207.tar.gz samba-64b611a18e2425994e611b0af21e9c4362f9f207.tar.xz samba-64b611a18e2425994e611b0af21e9c4362f9f207.zip |
r12364: add UINT32_MAX and UINT64_MAX replacement defines
(hopefully fix the build on OpenBSD)
metze
(This used to be commit cbe06ade214bd29eab5c11fcd011a3c463bf78db)
Diffstat (limited to 'source4/lib/replace/replace.h')
-rw-r--r-- | source4/lib/replace/replace.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 |