mirror of
https://github.com/triqs/dft_tools
synced 2024-12-25 05:43:40 +01:00
Make it compile again in pure C mode
This commit is contained in:
parent
842274003f
commit
f273c09c6f
@ -18,6 +18,7 @@
|
||||
* TRIQS. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
******************************************************************************/
|
||||
#ifdef TRIQS_WITH_PYTHON_SUPPORT
|
||||
#define TRIQS_LIB_CPP
|
||||
#include "./py_stream.hpp"
|
||||
#include "../utility/exceptions.hpp"
|
||||
@ -37,3 +38,6 @@ py_stream::py_stream() {
|
||||
|
||||
void py_stream::_write(const char* s) { pyref res = PyObject_CallMethod(sys_out, "write", "s", s); }
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
#ifdef TRIQS_WITH_PYTHON_SUPPORT
|
||||
|
||||
// REMOVE THIS
|
||||
#include <triqs/arrays.hpp>
|
||||
@ -16,3 +17,6 @@ template <> const char * make_format<5>::value = "O&O&O&O&O&";
|
||||
pyref py_converter<triqs::h5::group>::group_type;
|
||||
|
||||
}}
|
||||
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user