mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
Patch and new file by Geoff Furnish for C++ compilation.
This commit is contained in:
parent
9501219303
commit
4e08379891
2 changed files with 17 additions and 2 deletions
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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue