build: force _SAMBA_BUILD_==4 to be true in public headers
authorAndrew Tridgell <tridge@samba.org>
Thu, 3 Mar 2011 06:22:38 +0000 (17:22 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 15 Mar 2011 01:22:20 +0000 (12:22 +1100)
for s4 public headers, this is always true

wscript_build

index 22cd7a035091bf90e9b0e358e539580516dd289f..d955f90dc2ce9b97675d985be11d3debb8d64178 100644 (file)
@@ -24,6 +24,9 @@ bld.env.build_public_headers = 'include/public'
 # compilation, so they are safe
 bld.env.public_headers_skip = ['param/param_proto.h', 'lib/ldb_compat.h']
 
+# force headers to use SAMBA4 rules
+bld.env.public_headers_replace = { '#if _SAMBA_BUILD_ == 4' : '#if 1 /* _SAMBA_BUILD_ == 4 */' }
+
 samba_version.load_version(bld.env)
 bld.SAMBA_MKVERSION('version.h')