lib/replace: define __[u]intptr_t_defined if we prove an replacement
authorStefan Metzmacher <metze@samba.org>
Tue, 20 Mar 2018 20:46:12 +0000 (21:46 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 3 Apr 2018 14:41:09 +0000 (16:41 +0200)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13344

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Björn Jacke <bjacke@samba.org>
lib/replace/replace.h

index e2a55415e049a8892f9b26b48e4b951d94e4ea53..626d30530290aa3446ddeb31523264040d82db7e 100644 (file)
@@ -691,10 +691,12 @@ typedef int bool;
 
 #if !defined(HAVE_INTPTR_T)
 typedef long long intptr_t ;
+#define __intptr_t_defined
 #endif
 
 #if !defined(HAVE_UINTPTR_T)
 typedef unsigned long long uintptr_t ;
+#define __uintptr_t_defined
 #endif
 
 #if !defined(HAVE_PTRDIFF_T)