]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Undef ARRAY_SIZE, if defined, before define to avoid compilation warnings
authorPeter Eriksson <pen@lysator.liu.se>
Thu, 27 Feb 2020 19:54:52 +0000 (20:54 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 27 Feb 2020 21:43:29 +0000 (21:43 +0000)
Signed-off-by: Peter Eriksson <pen@lysator.liu.se>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Gary Lockyer <<gary@catalyst.net.nz>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Feb 27 21:43:29 UTC 2020 on sn-devel-184

lib/replace/replace.h

index 3f6b1380e0c13d8ce066afdfa163955fd4c56573..177be37edbe0d3270dbe946bcf4334fd5f425f74 100644 (file)
@@ -844,6 +844,9 @@ typedef unsigned long long ptrdiff_t ;
 /**
  * Work out how many elements there are in a static array.
  */
+#ifdef ARRAY_SIZE
+#undef ARRAY_SIZE
+#endif
 #define ARRAY_SIZE(a) (sizeof(a)/sizeof(a[0]))
 
 /**