Skip to content

Commit 010f274

Browse files
author
Oleg Ivanov
committed
Fix for fmax and isfinite cross-platformity
1 parent 0e880e6 commit 010f274

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

contrib/aqo/aqo.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,4 +328,12 @@ void cache_selectivity(int clause_hash,
328328
double *selectivity_cache_find_global_relid(int clause_hash, int global_relid);
329329
void selectivity_cache_clear(void);
330330

331+
#ifndef fmax
332+
#define fmax(a, b) ((a > b) ? (a) : (b))
333+
#endif
334+
335+
#ifndef isfinite
336+
#define isfinite(x) (-INFINITY < (x) && (x) < INFINITY)
337+
#endif
338+
331339
#endif

0 commit comments

Comments
 (0)