Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit010f274

Browse files
author
Oleg Ivanov
committed
Fix for fmax and isfinite cross-platformity
1 parent0e880e6 commit010f274

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(intclause_hash,intglobal_relid);
329329
voidselectivity_cache_clear(void);
330330

331+
#ifndeffmax
332+
#definefmax(a,b) ((a > b) ? (a) : (b))
333+
#endif
334+
335+
#ifndefisfinite
336+
#defineisfinite(x) (-INFINITY < (x) && (x) < INFINITY)
337+
#endif
338+
331339
#endif

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp