Commit 2f8ee663 authored by François Heremans's avatar François Heremans
Browse files

Added ifdef to compile with realtime only

parent 3dd9d235
#ifdef REAL_TIME
#include "auto_plot.h"
#include "useful_functions.h"
......@@ -106,3 +106,4 @@ int index_plot_string(AutoPlot *auto_plot, const char* label)
}
#endif
\ No newline at end of file
......@@ -4,6 +4,7 @@
* \brief functions used to automatically update the user curves plotted
*/
#ifdef REAL_TIME
#ifndef _AUTO_PLOT_H_
#define _AUTO_PLOT_H_
......@@ -31,3 +32,5 @@ int index_plot_string(AutoPlot *auto_plot, const char* label);
#endif
#endif
\ No newline at end of file
#ifdef REAL_TIME
#ifndef HAVE_M_PI
#define HAVE_M_PI // avoid redefinition of M_PI when including SDL
#endif // !HAVE_M_PI
......@@ -66,3 +68,5 @@ void set_plot(double value, char* label)
update_auto_plot(auto_plot, value, label);
}
}
#endif
\ No newline at end of file
......@@ -4,6 +4,8 @@
* \brief set_plot function called by the user to plot a curve
*/
#ifdef REAL_TIME
#ifndef _SET_PLOT_H_
#define _SET_PLOT_H_
......@@ -20,3 +22,5 @@
void free_set_plot();
#endif
#endif
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment