summaryrefslogtreecommitdiff
path: root/missing
diff options
context:
space:
mode:
Diffstat (limited to 'missing')
-rw-r--r--missing/explicit_bzero.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/missing/explicit_bzero.c b/missing/explicit_bzero.c
index c89bdbc0a8..e7bb11e69f 100644
--- a/missing/explicit_bzero.c
+++ b/missing/explicit_bzero.c
@@ -12,13 +12,15 @@
* http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1381.pdf
*/
-#ifdef __GNUC__
-#pragma GCC optimize ("O0")
+#ifndef FUNC_UNOPTIMIZED
+# define FUNC_UNOPTIMIZED(x) x
#endif
#ifndef HAVE_EXPLICIT_BZERO
/* Similar to bzero(), but have a guarantee not to be eliminated from compiler
optimization. */
+FUNC_UNOPTIMIZED(void explicit_bzero(void *b, size_t len));
+
void
explicit_bzero(void *b, size_t len)
{