diff --git a/Source/shared/isodefs.h b/Source/shared/isodefs.h index 5a7df9360a..6b51b33c29 100644 --- a/Source/shared/isodefs.h +++ b/Source/shared/isodefs.h @@ -2,20 +2,6 @@ #define ISODEFS_H_DEFINED #define INCPOINTS 100000 -#if defined(WIN32) -#include -#endif - -#ifdef pp_DRAWISO -#ifdef pp_OSX -#include -#include -#else -#include -#include -#endif -#endif - #ifdef IN_ISOBOX #define SV_EXTERN #else diff --git a/Source/shared/options_common.h b/Source/shared/options_common.h index 65f057ece4..4a64e52c82 100644 --- a/Source/shared/options_common.h +++ b/Source/shared/options_common.h @@ -149,6 +149,18 @@ #define GLUT_H #endif +#define GL_H +#ifdef pp_OSX +#undef GL_H +#define GL_H +#endif + +#define GLU_H +#ifdef pp_OSX +#undef GLU_H +#define GLU_H +#endif + #include "lint.h" #endif diff --git a/Source/smokeview/IOgeometry.c b/Source/smokeview/IOgeometry.c index b4a3eba3dd..2b051d878d 100644 --- a/Source/smokeview/IOgeometry.c +++ b/Source/smokeview/IOgeometry.c @@ -807,9 +807,6 @@ void DrawGeom(int flag, int timestate){ int j; trianglei = tris[i]; -#ifndef pp_TERRAIN_CFACES - if(use_cfaces==1&&trianglei->geomtype==GEOM_GEOM)continue; -#endif if(trianglei->geomtype!=GEOM_ISO){ if(trianglei->outside_domain==0&&showgeom_inside_domain==0)continue; if(trianglei->outside_domain==1&&showgeom_outside_domain==0)continue; diff --git a/Source/smokeview/IOobjects.c b/Source/smokeview/IOobjects.c index 7367849b73..323fca4293 100644 --- a/Source/smokeview/IOobjects.c +++ b/Source/smokeview/IOobjects.c @@ -4,6 +4,11 @@ #include #include +#if defined(WIN32) +#include +#endif +#include GLU_H + #include "datadefs.h" #include "smokeviewvars.h" #include "IOobjects.h" diff --git a/Source/smokeview/IOplot2d.c b/Source/smokeview/IOplot2d.c index 177468f355..f1be66e093 100644 --- a/Source/smokeview/IOplot2d.c +++ b/Source/smokeview/IOplot2d.c @@ -4,6 +4,11 @@ #include #include +#if defined(WIN32) +#include +#endif +#include GL_H + #include "datadefs.h" #include "smokeviewvars.h" @@ -366,9 +371,6 @@ void UpdateCurveBounds(plot2ddata *plot2di, int option){ curve->curve_factor = 1.0; curve->update_avg = 0; curve->vals = NULL; -#ifdef pp_PLOT2DMAX - curve->vals2 = NULL; -#endif strcpy(curve->scaled_label, ""); strcpy(curve->scaled_unit, ""); } @@ -420,88 +422,6 @@ void UpdateCurveBounds(plot2ddata *plot2di, int option){ } } -#ifdef pp_PLOT2DMAX -/* ------------------ TimeAverageVals ------------------------ */ - -void IntegrateVals(float *times, float *vals, float *vals_integral_arg, int nvals){ - int i; - - vals_integral_arg[0] = 0.0; - for(i = 1;i < nvals;i++){ - float dt; - - dt = times[i] - times[i - 1]; - vals_integral_arg[i] = vals_integral_arg[i-1] + dt*(vals[i-1] + vals[i]) / 2.0; - } -} - -/* ------------------ IntegrateValsAB ------------------------ */ - -float IntegrateValsAB(float *times, float *vals_integral_arg, int nvals, float tbeg, float tend){ - int ibeg, iend; - float vbeg, vend; - float dt1, dt2, dt; - float integral; - - ibeg = GetInterval(tbeg, times, nvals); - iend = GetInterval(tend, times, nvals); - dt1 = tbeg - times[ibeg]; - dt2 = times[ibeg + 1] - tbeg; - dt = times[ibeg + 1] - times[ibeg]; - vbeg = (dt1 * vals_integral_arg[ibeg + 1] + dt2 * vals_integral_arg[ibeg]) / dt; - - dt1 = tend - times[iend]; - dt2 = times[iend + 1] - tend; - dt = times[iend + 1] - times[iend]; - vend = (dt1 * vals_integral_arg[iend + 1] + dt2 * vals_integral_arg[iend]) / dt; - integral = vend - vbeg; - return integral; -} - -/* ------------------ MaxAverageVal ------------------------ */ - -float MaxAverageVal(float *times, float *vals_integral_arg, int nvals, float delta_t){ - int i; - float max_avg; - float tbeg, tend; - - tbeg = times[0]; - tend = tbeg + delta_t; - - max_avg = IntegrateValsAB(times, vals_integral_arg, nvals, tbeg, tend) / delta_t; - - for(i = 1;i < nvals;i++){ - float val_avg; - - tbeg = times[i]; - tend = tbeg + delta_t; - if(tend > times[nvals - 1])break; - val_avg = IntegrateValsAB(times, vals_integral_arg, nvals, tbeg, tend) / delta_t; - max_avg = MAX(max_avg, val_avg); - } - return max_avg; -} - -/* ------------------ MaxAverageVals ------------------------ */ - -void MaxAverageVals(float *times, float *vals, float *vals2, int nvals){ - int i; - - FREEMEMORY(v_integral); - NewMemory((void **)&v_integral, nvals * sizeof(float)); - IntegrateVals(times, vals, v_integral, nvals); - for(i = 1;i < nvals;i++){ - float max_avg, delta_t; - - delta_t = times[i] - times[0]; - max_avg = MaxAverageVal(times, v_integral, nvals, delta_t); - vals2[i] = max_avg; - } - vals2[0] = vals2[1]; - FREEMEMORY(v_integral); -} -#endif - /* ------------------ HavePlot2D ------------------------ */ int HavePlot2D(float **times, int *ntimes){ @@ -673,42 +593,18 @@ void DrawGenPlot(plot2ddata *plot2di){ if(curve->vals==NULL){ NewMemory((void **)&curve->vals, csvi->nvals * sizeof(devicedata *)); } -#ifdef pp_PLOT2DMAX - if(curve->vals2==NULL){ - NewMemory((void **)&curve->vals2, csvi->nvals * sizeof(devicedata *)); - } -#endif - if(curve->update_avg==1||plot2d_time_average>0.0 -#ifdef pp_PLOT2DMAX - ||update_max_avg_vals==1 -#endif - ){ + if(curve->update_avg==1||plot2d_time_average>0.0){ if(curve->update_avg==1){ curve->update_avg = 0; TimeAveragePlot2DData(csvfi->time->vals, csvi->vals, curve->vals, csvi->nvals, plot2d_time_average); } -#ifdef pp_PLOT2DMAX - if(update_max_avg_vals==1){ - update_max_avg_vals = 0; - MaxAverageVals(csvfi->time->vals, csvi->vals, curve->vals2, csvi->nvals); - } -#endif } else{ memcpy(curve->vals, csvi->vals, csvi->nvals*sizeof(float)); } if(global_times!=NULL){ float *vals; -#ifdef pp_PLOT2DMAX - if(show_max_avg_vals == 1){ - vals = curve->vals2; - } - else{ - vals = curve->vals; - } -#else vals = curve->vals; -#endif highlight_time = global_times[itimes]; highlight_val = GetCSVVal(global_times[itimes], csvfi->time->vals, vals, csvi->nvals); DrawGenCurve(option, plot2di, curve, plot2d_size_factor, csvfi->time->vals, vals, csvi->nvals, diff --git a/Source/smokeview/camera.c b/Source/smokeview/camera.c index ede6b858d3..25394e9a63 100644 --- a/Source/smokeview/camera.c +++ b/Source/smokeview/camera.c @@ -4,6 +4,11 @@ #include #include +#if defined(WIN32) +#include +#endif +#include GL_H + #include "smokeviewvars.h" /* ------------------ Zoom2Aperture ------------------------ */ diff --git a/Source/smokeview/getdatabounds.c b/Source/smokeview/getdatabounds.c index 19291a1cd7..a168b1ffc7 100644 --- a/Source/smokeview/getdatabounds.c +++ b/Source/smokeview/getdatabounds.c @@ -4,6 +4,11 @@ #include #include +#if defined(WIN32) +#include +#endif +#include GL_H + #include "smokeviewvars.h" #include "IOscript.h" diff --git a/Source/smokeview/glui_objects.cpp b/Source/smokeview/glui_objects.cpp index 643ba062f4..009bb75fd3 100644 --- a/Source/smokeview/glui_objects.cpp +++ b/Source/smokeview/glui_objects.cpp @@ -27,9 +27,6 @@ #define GENPLOT_RESET_BOUNDS 114 #define GENPLOT_PLOT_DIST 115 #define GENPLOT_UPDATE 116 -#ifdef pp_PLOT2DMAX -#define GENPLOT_MAX_VALS 117 -#endif #define GENPLOT_PLOT_TMINMAX 118 #define GENPLOT_SHOW_PLOTS 119 @@ -129,9 +126,7 @@ GLUI_EditText *EDIT_filter=NULL; GLUI_Listbox *LIST_csvfile = NULL; GLUI_Listbox *LIST_csvID = NULL; GLUI_Listbox *LIST_curve_unit = NULL; -#ifdef pp_CFAST_CSV GLUI_Listbox *LIST_curve_compartments = NULL; -#endif GLUI_Listbox *LIST_plots = NULL; GLUI_Listbox *LIST_plotcurves = NULL; GLUI_Listbox *LIST_open=NULL; @@ -401,12 +396,7 @@ void RemoveCurve(plot2ddata *plot2di, int index){ } curve = plot2di->curve+index; if(index >= 0){ -#ifdef pp_PLOT2DMAX FREEMEMORY(curve->vals); - FREEMEMORY(curve->vals2); -#else - FREEMEMORY(curve->vals); -#endif } // (0,...,i-1,i+1,...,n-1) if(plot2di->ncurves>index+1){ @@ -473,9 +463,6 @@ void AddCSVCurve(plot2ddata *plot2di, int index, int option){ curve->curve_factor = glui_curve_default.curve_factor; curve->apply_curve_factor = glui_curve_default.apply_curve_factor; curve->vals = glui_curve_default.vals; -#ifdef pp_PLOT2DMAX - curve->vals2 = glui_curve_default.vals2; -#endif curve->update_avg = glui_curve_default.update_avg; shortlabel = GetPlotShortLabel2(plot2di, curve); @@ -745,9 +732,7 @@ void FilterList(void){ char unit_label[256]; int unit_id; -#ifdef pp_CFAST_CSV int compartment_id; -#endif LOCK_CSV_LOAD_CPP; for(i=0; iget_int_val(); } -#endif for(i = 0; i < csvfi->ncsvinfo; i++){ csvdata *csvi; int doit; @@ -787,8 +770,6 @@ void FilterList(void){ if(doit==0&&csvi->dimensionless == 1 && strcmp(unit_label, "dimensionless")==0)doit = 1; if(doit==0&&csvi->dimensionless == 0 && strcmp(unit_label, csvi->label.unit) == 0)doit = 1; if(doit==0)continue; - -#ifdef pp_CFAST_CSV if(isZoneFireModel==1&&compartment_id>=0){ if( strcmp(csvfi->c_type, "compartments") == 0 || @@ -811,7 +792,6 @@ void FilterList(void){ } } -#endif if(doit==1)LIST_csvID->add_item(i, csvi->label.shortlabel); } } @@ -1452,11 +1432,6 @@ void GenPlotCB(int var){ break; case GENPLOT_UPDATE: break; -#ifdef pp_PLOT2DMAX - case GENPLOT_MAX_VALS: - update_max_avg_vals = 1; - break; -#endif default: ASSERT(FFALSE); break; @@ -1847,7 +1822,6 @@ extern "C" void GluiPlot2DSetup(int main_window){ LIST_curve_unit = glui_plot2d->add_listbox_to_panel(PANEL_add_curve1, "unit:", &icsv_units, GENPLOT_CURVE_UNIT, GenPlotCB); LIST_curve_unit->add_item(-1, "any"); -#ifdef pp_CFAST_CSV if(isZoneFireModel==1){ LIST_curve_compartments = glui_plot2d->add_listbox_to_panel(PANEL_add_curve1, "compartment:", &icsv_compartments, GENPLOT_CURVE_UNIT, GenPlotCB); for(i = 0;i < nrooms;i++){ @@ -1859,7 +1833,6 @@ extern "C" void GluiPlot2DSetup(int main_window){ LIST_curve_compartments->add_item(-1, "any"); LIST_curve_compartments->set_int_val(-1); } -#endif GenPlotCB(GENPLOT_CSV_FILETYPE); GenPlotCB(GENPLOT_CURVE_UNIT); @@ -1894,9 +1867,6 @@ extern "C" void GluiPlot2DSetup(int main_window){ SPINNER_size_factor = glui_plot2d->add_spinner_to_panel(PANEL_plotother, _("plot size(relative)"), GLUI_SPINNER_FLOAT, &plot2d_size_factor, GENPLOT_PLOT_SIZE, GenPlotCB); glui_plot2d->add_spinner_to_panel(PANEL_plotother, _("vertical font spacing"), GLUI_SPINNER_FLOAT, &plot2d_font_spacing, GENPLOT_UPDATE, GenPlotCB); SPINNER_plot2d_time_average = glui_plot2d->add_spinner_to_panel(PANEL_plotother, _("smoothing interval (s)"), GLUI_SPINNER_FLOAT, &plot2d_time_average, DEVICE_TIMEAVERAGE, DeviceCB); -#ifdef pp_PLOT2DMAX - glui_plot2d->add_checkbox_to_panel(PANEL_plotother, "max average", &show_max_avg_vals, GENPLOT_MAX_VALS, GenPlotCB); -#endif PANEL_plotproperties2 = glui_plot2d->add_panel_to_panel(ROLLOUT_plotproperties, "", GLUI_PANEL_NONE); diff --git a/Source/smokeview/options.h b/Source/smokeview/options.h index 52fa6a8101..ecf0acd80c 100644 --- a/Source/smokeview/options.h +++ b/Source/smokeview/options.h @@ -12,10 +12,6 @@ #define PROGVERSION "" #endif - -//#define pp_PLOT2DMAX // add option to plot 2d max vals -#define pp_CFAST_CSV // look for cfast spreadsheet files - //*** parallel file loading #define pp_SLICE_MULTI // load slice files in parallel #define pp_PART_MULTI // load particle files in parallel @@ -33,8 +29,6 @@ #define pp_TOUR_DUP // handle duplicate keyframes //#define pp_BNDF // merge geometry and structured boundary files in load menus -#define pp_TERRAIN_CFACES // draw terrain over cfaces and regular geometry - //#define pp_DPRINT // turn on debug print (file, line number) // streaming directives @@ -56,7 +50,6 @@ //#define pp_CRASH_TEST // test detection of division by zero or use of undefined pointer #define pp_GPU // support the GPU #define pp_THREAD // turn on multi-threading -#define pp_DRAWISO // turn on drawing routines //#define pp_LOAD_NEWDATA // add button for loading new data #ifdef pp_GPU diff --git a/Source/smokeview/readsmv.c b/Source/smokeview/readsmv.c index 9cf03f34f6..1cfef32b65 100644 --- a/Source/smokeview/readsmv.c +++ b/Source/smokeview/readsmv.c @@ -171,9 +171,7 @@ int ReadCSVFile(csvfiledata *csvfi, int flag){ int nrows, ncols; int nunits, nlabels; char *buffer, *buffer_labels, *buffer_units, *buffer_temp; -#ifdef pp_CFAST_CSV char *buffer_dummy; -#endif char *buffptr; char **labels, **units; float *vals; @@ -206,9 +204,7 @@ int ReadCSVFile(csvfiledata *csvfi, int flag){ NewMemory((void **)&(buffer), len_buffer); NewMemory((void **)&(buffer_labels), len_buffer); NewMemory((void **)&(buffer_units), len_buffer); -#ifdef pp_CFAST_CSV NewMemory((void **)&(buffer_dummy), len_buffer); -#endif NewMemory((void **)&(buffer_temp), len_buffer); UNLOCK_CSV_LOAD; @@ -250,11 +246,9 @@ int ReadCSVFile(csvfiledata *csvfi, int flag){ ci = csvfi->csvinfo + i; ci->nvals = nrows-2; -#ifdef pp_CFAST_CSV if(csvfi->format == CSV_CFAST_FORMAT){ ci->nvals = nrows-4; } -#endif NewMemory((void **)&ci->vals, MAX(1, ci->nvals)*sizeof(csvdata)); NewMemory((void **)&ci->vals_orig, MAX(1, ci->nvals)*sizeof(csvdata)); } @@ -263,7 +257,6 @@ int ReadCSVFile(csvfiledata *csvfi, int flag){ // setup labels and units -#ifdef pp_CFAST_CSV if(csvfi->format == CSV_CFAST_FORMAT){ fgets(buffer_labels, len_buffer, stream); TrimBack(buffer_labels); @@ -287,16 +280,6 @@ int ReadCSVFile(csvfiledata *csvfi, int flag){ ParseCSV(buffer_labels, buffer_temp, labels, &nlabels); CheckMemory; } -#else - fgets(buffer_units, len_buffer, stream); - TrimBack(buffer_units); - ParseCSV(buffer_units, buffer_temp, units, &nunits); - - fgets(buffer_labels, len_buffer, stream); - TrimBack(buffer_labels); - ParseCSV(buffer_labels, buffer_temp, labels, &nlabels); - CheckMemory; -#endif for(i=0; incsvinfo; i++){ csvdata *ci; @@ -6507,7 +6490,6 @@ void InitCSV(csvfiledata *csvi, char *file, char *type, int format){ strcpy(csvi->c_type, type); } -#ifdef pp_CFAST_CSV /* ------------------ AddCfastCsvfi ------------------------ */ void AddCfastCsvfi(char *suffix, char *type, int format){ @@ -6543,7 +6525,6 @@ void AddCfastCsvf(void){ // AddCfastCsvfi("_slab", "slab", CSV_CFAST_FORMAT); // AddCfastCsvfi("_calculations", "calculations", CSV_CFAST_FORMAT); } -#endif /* ------------------ ReadSMV ------------------------ */ @@ -7409,15 +7390,8 @@ int ReadSMV(bufferstreamdata *stream){ strcpy(fds_githash,"unknown"); } if(nisoinfo>0&&nmeshes>0)nisos_per_mesh = MAX(nisoinfo / nmeshes,1); -#ifdef pp_CFAST_CSV NewMemory((void **)&csvfileinfo,(ncsvfileinfo+CFAST_CSV_MAX+1)*sizeof(csvfiledata)); ncsvfileinfo=0; -#else - if(ncsvfileinfo > 0){ - NewMemory((void **)&csvfileinfo,(ncsvfileinfo+1)*sizeof(csvfiledata)); - ncsvfileinfo=0; - } -#endif if(ngeominfo>0){ NewMemory((void **)&geominfo,ngeominfo*sizeof(geomdata)); ngeominfo=0; @@ -11400,9 +11374,7 @@ typedef struct { UpdateSmoke3dFileParms(); -#ifdef pp_CFAST_CSV AddCfastCsvf(); -#endif //RemoveDupBlockages(); InitCullGeom(cullgeom); @@ -12284,9 +12256,6 @@ int ReadIni2(char *inifile, int localfile){ curve->curve_factor = factor; curve->apply_curve_factor = apply_factor; curve->vals = NULL; -#ifdef pp_PLOT2DMAX - curve->vals2 = NULL; -#endif curve->use_foreground_color = use_foreground_color; if(strcmp(curve->c_type, "devc")==0){ curve->quantity = csvfileinfo[file_index].csvinfo[col_index].label.longlabel; diff --git a/Source/smokeview/renderhtml.c b/Source/smokeview/renderhtml.c index e1c6d56d82..f6e999d72b 100644 --- a/Source/smokeview/renderhtml.c +++ b/Source/smokeview/renderhtml.c @@ -5,6 +5,10 @@ #include #include #include +#if defined(WIN32) +#include +#endif +#include GL_H #include "smokeviewvars.h" #include "interp.h" diff --git a/Source/smokeview/renderimage.c b/Source/smokeview/renderimage.c index fcfb049480..9c0bbd266c 100644 --- a/Source/smokeview/renderimage.c +++ b/Source/smokeview/renderimage.c @@ -6,6 +6,11 @@ #include #include +#if defined(WIN32) +#include +#endif +#include GL_H + #include "smokeviewvars.h" #include GLUT_H diff --git a/Source/smokeview/showscene.c b/Source/smokeview/showscene.c index 7159885dba..049ded7da6 100644 --- a/Source/smokeview/showscene.c +++ b/Source/smokeview/showscene.c @@ -292,15 +292,8 @@ void ShowScene2(int mode){ /* ++++++++++++++++++++++++ draw terrain +++++++++++++++++++++++++ */ -#ifdef pp_TERRAIN_CFACES CLIP_GEOMETRY; DrawTerrainGeom(DRAW_OPAQUE); -#else - if(use_cfaces==0||ncgeominfo==0){ - CLIP_GEOMETRY; - DrawTerrainGeom(DRAW_OPAQUE); - } -#endif if(visTerrainType != TERRAIN_HIDDEN&&nterraininfo>0&&ngeominfo==0 && geom_bounding_box_mousedown==0){ int i; @@ -430,15 +423,8 @@ void ShowScene2(int mode){ /* ++++++++++++++++++++++++ draw terrain +++++++++++++++++++++++++ */ -#ifdef pp_TERRAIN_CFACES CLIP_GEOMETRY; DrawTerrainGeom(DRAW_TRANSPARENT); -#else - if(use_cfaces==0||ncgeominfo==0){ - CLIP_GEOMETRY; - DrawTerrainGeom(DRAW_TRANSPARENT); - } -#endif /* ++++++++++++++++++++++++ draw transparent cfaces +++++++++++++++++++++++++ */ diff --git a/Source/smokeview/smokeviewvars.h b/Source/smokeview/smokeviewvars.h index 14c6f8cfc5..1564473b88 100644 --- a/Source/smokeview/smokeviewvars.h +++ b/Source/smokeview/smokeviewvars.h @@ -26,12 +26,6 @@ SVEXTERN int SVDECL(update_plot2dini, 0); SVEXTERN int SVDECL(update_device_timeaverage, 0); -#ifdef pp_PLOT2DMAX -SVEXTERN int SVDECL(show_max_avg_vals, 0); -SVEXTERN int SVDECL(update_max_avg_vals, 0); -SVEXTERN float SVDECL(*v_integral, NULL); -#endif - // hvac data SVEXTERN int SVDECL(hvacductvar_index, -1), SVDECL(hvacnodevar_index, -1); SVEXTERN int SVDECL(nhvacnodeinfo, 0), SVDECL(nhvacductinfo, 0), SVDECL(nhvacinfo, 0); @@ -876,9 +870,7 @@ SVEXTERN int SVDECL(plot2d_show_plots, 1); SVEXTERN int SVDECL(glui_remove_selected_curve, 0); SVEXTERN int SVDECL(glui_csv_file_index, 0); SVEXTERN int SVDECL(icsv_cols, 0), SVDECL(icsv_units, 0); -#ifdef pp_CFAST_CSV SVEXTERN int SVDECL(icsv_compartments, -1); -#endif SVEXTERN int SVDECL(plot2d_max_columns, 0); SVEXTERN int SVDECL(deviceunits_index, 0); SVEXTERN int SVDECL(plot2d_dialogs_defined, 0); diff --git a/Source/smokeview/startup.c b/Source/smokeview/startup.c index 280fbe48a8..3b07e1815e 100644 --- a/Source/smokeview/startup.c +++ b/Source/smokeview/startup.c @@ -146,9 +146,6 @@ void InitMisc(void){ glui_curve_default.apply_curve_factor = 0; glui_curve_default.update_avg = 0; glui_curve_default.vals = NULL; -#ifdef pp_PLOT2DMAX - glui_curve_default.vals2 = NULL; -#endif memcpy(&glui_curve, &glui_curve_default, sizeof(curvedata)); strcpy(glui_curve_default.scaled_label, ""); strcpy(glui_curve_default.scaled_unit, ""); diff --git a/Source/smokeview/structures.h b/Source/smokeview/structures.h index 212d2a6603..c0b60ff1a4 100644 --- a/Source/smokeview/structures.h +++ b/Source/smokeview/structures.h @@ -1,6 +1,11 @@ #ifndef FLOWFILES_H_DEFINED #define FLOWFILES_H_DEFINED +#if defined(WIN32) +#include +#endif +#include GL_H + #include "stdio_m.h" #include "string_util.h" // necessary for flowlabels #include "smokestream.h" @@ -1032,9 +1037,6 @@ typedef struct _curvedata{ float curve_factor; float vmin, vmax; float *vals; -#ifdef pp_PLOT2DMAX - float *vals2; -#endif int update_avg; float linewidth; } curvedata; diff --git a/Source/smokeview/threader.c b/Source/smokeview/threader.c index 8117e7f1a0..0d231e9a5e 100644 --- a/Source/smokeview/threader.c +++ b/Source/smokeview/threader.c @@ -4,6 +4,11 @@ #include #include +#if defined(WIN32) +#include +#endif +#include GL_H + #include "smokeviewvars.h" #include "IOvolsmoke.h" #include "smokestream.h"