comparison 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
comparison
equal deleted inserted replaced
37654:dec259e4d891 37655:2f3f2e32dfd9
24 * davegottner@delphi.com. 24 * davegottner@delphi.com.
25 *---------------------------------------------------------------------------*/ 25 *---------------------------------------------------------------------------*/
26 26
27 #include <stdio.h> 27 #include <stdio.h>
28 #include <string.h> 28 #include <string.h>
29
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
29 33
30 int _PyOS_opterr = 1; /* generate error messages */ 34 int _PyOS_opterr = 1; /* generate error messages */
31 int _PyOS_optind = 1; /* index into argv array */ 35 int _PyOS_optind = 1; /* index into argv array */
32 char *_PyOS_optarg = NULL; /* optional argument */ 36 char *_PyOS_optarg = NULL; /* optional argument */
33 37
79 } 83 }
80 } 84 }
81 85
82 return option; 86 return option;
83 } 87 }
88
89 #ifdef __cplusplus
90 }
91 #endif
92