aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc')
-rw-r--r--gcc-4.9/gcc/config/i386/pmm_malloc.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc-4.9/gcc/config/i386/pmm_malloc.h b/gcc-4.9/gcc/config/i386/pmm_malloc.h
index 67b88a8..4506dbc 100644
--- a/gcc-4.9/gcc/config/i386/pmm_malloc.h
+++ b/gcc-4.9/gcc/config/i386/pmm_malloc.h
@@ -32,9 +32,13 @@
#ifndef __cplusplus
extern int posix_memalign (void **, size_t, size_t);
#else
+#ifdef __GLIBC__
extern "C" int posix_memalign (void **, size_t, size_t) throw ();
-#endif
-#endif
+#else
+extern "C" int posix_memalign (void **, size_t, size_t);
+#endif /* __GLIBC__ */
+#endif /* __cplusplus */
+#endif /* !(__ANDROID__) || (HAVE_POSIX_MEMALIGN) */
static __inline void *
_mm_malloc (size_t size, size_t alignment)