lib/replace: add more condition to add snprintf.c
authorStefan Metzmacher <metze@samba.org>
Mon, 11 Jun 2012 07:07:06 +0000 (09:07 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 14 Jun 2012 07:34:13 +0000 (09:34 +0200)
metze

lib/replace/wscript

index 7a44329fec826cb978e5600374a82e7cece77a7d..215fc32383e5ff23979940acd5b0e27e0f440c41 100644 (file)
@@ -475,7 +475,9 @@ REPLACEMENT_FUNCTIONS = {
                   'dprintf', 'get_current_dir_name',
                   'strerror_r', 'clock_gettime'],
     'timegm.c': ['timegm'],
-    'snprintf.c': ['snprintf'],
+    # Note: C99_VSNPRINTF is not a function, but a special condition
+    # for replacement
+    'snprintf.c': ['C99_VSNPRINTF', 'snprintf', 'vsnprintf', 'asprintf', 'vasprintf'],
     }