gdbsupport: include cstdlib in common-defs.h
[deliverable/binutils-gdb.git] / gdbsupport / common-defs.h
index e42d2b80c045361cfa19f52cb146ae32c58f61b3..d3f5eafa4555fb014d2f9140127a6fb846d6574c 100644 (file)
 
 #include <stdarg.h>
 #include <stdio.h>
+
+/* Include both cstdlib and stdlib.h to ensure we have standard functions
+   defined both in the std:: namespace and in the global namespace.  */
+#include <cstdlib>
 #include <stdlib.h>
+
 #include <stddef.h>
 #include <stdint.h>
 #include <string.h>
This page took 0.026034 seconds and 4 git commands to generate.