3
0
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:
Olivier Parcollet 2014-06-12 17:41:32 +02:00
parent 842274003f
commit f273c09c6f
2 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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