Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'features/org.eclipse.equinox.executable.feature/library/eclipse-memcpy.h')
-rw-r--r--features/org.eclipse.equinox.executable.feature/library/eclipse-memcpy.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/features/org.eclipse.equinox.executable.feature/library/eclipse-memcpy.h b/features/org.eclipse.equinox.executable.feature/library/eclipse-memcpy.h
new file mode 100644
index 000000000..0489d32ee
--- /dev/null
+++ b/features/org.eclipse.equinox.executable.feature/library/eclipse-memcpy.h
@@ -0,0 +1,23 @@
+/*******************************************************************************
+ * Copyright (c) 2017 Wind River Systems, Inc. and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Martin Oberhuber (Wind River) - initial API and implementation
+ *******************************************************************************/
+#ifndef ECLIPSE_MEMMOVE_H
+#define ECLIPSE_MEMMOVE_H
+
+/* Bug 517013: Replace memcpy() by memmove() on Linux x86_64 */
+/* Must be included after memcpy / memmove system includes. */
+#if defined(LINUX) && defined(__x86_64__)
+# if defined(memcpy)
+# undef memcpy
+# endif
+# define memcpy memmove
+#endif
+
+#endif

Back to the top