Fixes to filter join and gcc 7.x compilation errors
[com/gs-lite.git] / include / lfta / rts_external.h
index 0f0127c..5e0f197 100644 (file)
@@ -17,6 +17,8 @@
  ------------------------------------------- */
 
 #include <stdint.h>
+#include<math.h>
+
 
 #include "gsconfig.h"
 #include "gstypes.h"
@@ -84,10 +86,17 @@ gs_retval_t str_constructor(struct gs_string *s, gs_sp_t l);
 #define UINT(c) ((unsigned int)(c))
 #define ULLONG(c) ((unsigned long long)(c))
 #define FLOAT(c) ((double)(c))
+#define EQ(x,y) ((x)==(y))
+#define GEQ(x,y) ((x)>=(y))
+#define LEQ(x,y) ((x)<=(y))
 
 //     Cast away temporality
 #define non_temporal(x)(x)
 
+//     Access math libraries
+#define sqrt(x) sqrt(x)
+
+
 
 
 gs_uint32_t str_match_offset( gs_uint32_t offset, struct gs_string * s1, struct gs_string * s2);