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 "auto_plot.h"
#include "useful_functions.h" #include "useful_functions.h"
...@@ -106,3 +106,4 @@ int index_plot_string(AutoPlot *auto_plot, const char* label) ...@@ -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 @@ ...@@ -4,6 +4,7 @@
* \brief functions used to automatically update the user curves plotted * \brief functions used to automatically update the user curves plotted
*/ */
#ifdef REAL_TIME
#ifndef _AUTO_PLOT_H_ #ifndef _AUTO_PLOT_H_
#define _AUTO_PLOT_H_ #define _AUTO_PLOT_H_
...@@ -31,3 +32,5 @@ int index_plot_string(AutoPlot *auto_plot, const char* label); ...@@ -31,3 +32,5 @@ int index_plot_string(AutoPlot *auto_plot, const char* label);
#endif #endif
#endif
\ No newline at end of file
#ifdef REAL_TIME
#ifndef HAVE_M_PI #ifndef HAVE_M_PI
#define HAVE_M_PI // avoid redefinition of M_PI when including SDL #define HAVE_M_PI // avoid redefinition of M_PI when including SDL
#endif // !HAVE_M_PI #endif // !HAVE_M_PI
...@@ -66,3 +68,5 @@ void set_plot(double value, char* label) ...@@ -66,3 +68,5 @@ void set_plot(double value, char* label)
update_auto_plot(auto_plot, value, label); update_auto_plot(auto_plot, value, label);
} }
} }
#endif
\ No newline at end of file
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
* \brief set_plot function called by the user to plot a curve * \brief set_plot function called by the user to plot a curve
*/ */
#ifdef REAL_TIME
#ifndef _SET_PLOT_H_ #ifndef _SET_PLOT_H_
#define _SET_PLOT_H_ #define _SET_PLOT_H_
...@@ -20,3 +22,5 @@ ...@@ -20,3 +22,5 @@
void free_set_plot(); void free_set_plot();
#endif #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