Gate wuffs_aux on WUFFS_BASE__HAVE_UNIQUE_PTR
diff --git a/cmd/wuffs-c/release.go b/cmd/wuffs-c/release.go
index 89cb671..f89e005 100644
--- a/cmd/wuffs-c/release.go
+++ b/cmd/wuffs-c/release.go
@@ -107,14 +107,14 @@
}
}
- out.WriteString("#if defined(__cplusplus) && (__cplusplus >= 201103L)\n\n")
+ out.WriteString("#if defined(__cplusplus) && defined(WUFFS_BASE__HAVE_UNIQUE_PTR)\n\n")
out.WriteString(data.AuxBaseHh)
out.WriteString("\n")
for _, f := range data.AuxNonBaseHhFiles {
out.WriteString(f)
out.WriteString("\n")
}
- out.WriteString("#endif // defined(__cplusplus) && (__cplusplus >= 201103L)\n")
+ out.WriteString("#endif // defined(__cplusplus) && defined(WUFFS_BASE__HAVE_UNIQUE_PTR)\n")
out.Write(grImplStartsHere)
out.WriteString("\n")
@@ -126,14 +126,14 @@
}
}
- out.WriteString("#if defined(__cplusplus) && (__cplusplus >= 201103L)\n\n")
+ out.WriteString("#if defined(__cplusplus) && defined(WUFFS_BASE__HAVE_UNIQUE_PTR)\n\n")
out.WriteString(data.AuxBaseCc)
out.WriteString("\n")
for _, f := range data.AuxNonBaseCcFiles {
out.WriteString(f)
out.WriteString("\n")
}
- out.WriteString("#endif // defined(__cplusplus) && (__cplusplus >= 201103L)\n\n")
+ out.WriteString("#endif // defined(__cplusplus) && defined(WUFFS_BASE__HAVE_UNIQUE_PTR)\n\n")
out.Write(grImplEndsHere)
out.WriteString(grPragmaPop)
diff --git a/release/c/wuffs-unsupported-snapshot.c b/release/c/wuffs-unsupported-snapshot.c
index a702e3d..cea611f 100644
--- a/release/c/wuffs-unsupported-snapshot.c
+++ b/release/c/wuffs-unsupported-snapshot.c
@@ -9269,7 +9269,7 @@
#endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION)
-#if defined(__cplusplus) && (__cplusplus >= 201103L)
+#if defined(__cplusplus) && defined(WUFFS_BASE__HAVE_UNIQUE_PTR)
// ---------------- Auxiliary - Base
@@ -9637,7 +9637,7 @@
} // namespace wuffs_aux
-#endif // defined(__cplusplus) && (__cplusplus >= 201103L)
+#endif // defined(__cplusplus) && defined(WUFFS_BASE__HAVE_UNIQUE_PTR)
// WUFFS C HEADER ENDS HERE.
#ifdef WUFFS_IMPLEMENTATION
@@ -36299,7 +36299,7 @@
#endif // !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__WBMP)
-#if defined(__cplusplus) && (__cplusplus >= 201103L)
+#if defined(__cplusplus) && defined(WUFFS_BASE__HAVE_UNIQUE_PTR)
// ---------------- Auxiliary - Base
@@ -37611,7 +37611,7 @@
#endif // !defined(WUFFS_CONFIG__MODULES) ||
// defined(WUFFS_CONFIG__MODULE__AUX__JSON)
-#endif // defined(__cplusplus) && (__cplusplus >= 201103L)
+#endif // defined(__cplusplus) && defined(WUFFS_BASE__HAVE_UNIQUE_PTR)
#endif // WUFFS_IMPLEMENTATION