diff Python/getopt.c @ 37655:2f3f2e32dfd9 legacy-trunk

spread the extern "C" { } magic pixie dust around. Python itself builds now using a C++ compiler. Still lots and lots of errors in the modules built by setup.py, and a bunch of warnings from g++ in the core.
author Anthony Baxter <anthonybaxter@gmail.com>
date Thu, 13 Apr 2006 02:06:09 +0000
parents a826a46bae54
children c48b3a68f696
line wrap: on
line diff
--- a/Python/getopt.c	Thu Apr 13 02:04:42 2006 +0000
+++ b/Python/getopt.c	Thu Apr 13 02:06:09 2006 +0000
@@ -27,6 +27,10 @@
 #include <stdio.h>
 #include <string.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 int _PyOS_opterr = 1;          /* generate error messages */
 int _PyOS_optind = 1;          /* index into argv array   */
 char *_PyOS_optarg = NULL;     /* optional argument       */
@@ -81,3 +85,8 @@
 
 	return option;
 }
+
+#ifdef __cplusplus
+}
+#endif
+