mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Patch and new file by Geoff Furnish for C++ compilation.
This commit is contained in:
11
Modules/ccpython.cc
Normal file
11
Modules/ccpython.cc
Normal file
@@ -0,0 +1,11 @@
|
||||
/* Minimal main program -- everything is loaded from the library */
|
||||
|
||||
#include "Python.h"
|
||||
|
||||
extern "C"
|
||||
DL_EXPORT(int) Py_Main( int argc, char *argv[] );
|
||||
|
||||
int main( int argc, char *argv[] )
|
||||
{
|
||||
return Py_Main(argc, argv);
|
||||
}
|
||||
Reference in New Issue
Block a user