Changeset 4cb8c8 in git
- Timestamp:
- Apr 1, 2020, 8:39:57 PM (4 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- aec21088ae2dbaf6005ab178b79f3970e39e7d29
- Parents:
- 52558a6b3a0a415be47b13181276001350a30b8e
- Location:
- Singular/dyn_modules
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/dyn_modules/pyobject/pyobject.cc
r52558a r4cb8c8 14 14 15 15 #include "kernel/mod2.h" 16 #ifdef HAVE_PYTHON17 16 18 17 #include "omalloc/omalloc.h" … … 30 29 #include "Singular/mod_lib.h" 31 30 31 #ifdef HAVE_PYTHON 32 32 #include <Python.h> 33 33 … … 741 741 } 742 742 #undef PYOBJECT_ADD_C_PROC 743 #else 744 extern "C" int SI_MOD_INIT(pyobject)(SModulFunctions* psModulFunctions) 745 { 746 PrintS("no pyobject support\n"); 747 return MAX_TOK; 748 } 743 749 744 750 #endif /* HAVE_PYTHON */ -
Singular/dyn_modules/python/python_module.cc
r52558a r4cb8c8 1 1 #include "kernel/mod2.h" 2 #ifdef HAVE_PYTHON_MOD3 2 #include <stdlib.h> 4 3 #include <stdio.h> … … 8 7 #include <unistd.h> 9 8 #include <sys/stat.h> 10 #include <boost/python.hpp>11 #include <Python.h>12 9 #include "Singular/tok.h" 13 10 #include "kernel/structs.h" … … 19 16 #include "omalloc/omalloc.h" 20 17 21 #include <stdio.h>22 #include <stdlib.h>23 #include <string.h>24 18 #include <time.h> 19 #if defined(HAVE_PYTHON_MOD) && defined(HAVE_PYTHON) 20 #include <boost/python.hpp> 21 #include <Python.h> 25 22 #include <Python.h> 26 23 #include "wrapper.h" … … 82 79 return MAX_TOK; 83 80 } 81 #else 82 extern "C" int SI_MOD_INIT(python_module)(SModulFunctions* psModulFunctions) 83 { 84 PrintS("no python_mod support\n"); 85 return MAX_TOK; 86 } 84 87 #endif
Note: See TracChangeset
for help on using the changeset viewer.