#pragma push_macro("MAX") #pragma push_macro("MIN") #undef MAX #undef MIN #include "binary_c.h" // add visibility __attribute__ ((visibility ("default"))) to it void binary_c_API_function custom_output_function(struct stardata_t * stardata); void binary_c_API_function custom_output_function(struct stardata_t * stardata) { // struct stardata_t * stardata = (struct stardata_t *)x; Printf("MY_STELLAR_DATA %g %g\n",((double)stardata->model.time),((double)stardata->star[0].mass)); Printf("my_sss2 %g %g\n",((double)stardata->model.time),((double)stardata->star[1].mass));; } #undef MAX #undef MIN #pragma pop_macro("MIN") #pragma pop_macro("MAX")