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

Commitf6e00ae

Browse files
committed
Further MSVC portability fixes from Magnus.
1 parent6bc1f9b commitf6e00ae

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

‎contrib/earthdistance/earthdistance.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
/* $PostgreSQL: pgsql/contrib/earthdistance/earthdistance.c,v 1.11 2006/05/30 22:12:12 tgl Exp $ */
1+
/* $PostgreSQL: pgsql/contrib/earthdistance/earthdistance.c,v 1.12 2006/10/19 20:03:07 tgl Exp $ */
22

33
#include"postgres.h"
44

5+
#ifdefWIN32
6+
#define_USE_MATH_DEFINES
7+
#endif
58
#include<math.h>
69

710
#include"utils/geo_decls.h"/* for Pt */

‎src/include/port/win32.h

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.62 2006/10/04 00:30:10 momjian Exp $ */
1+
/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.63 2006/10/19 20:03:08 tgl Exp $ */
22

33
#if defined(_MSC_VER)|| defined(__BORLANDC__)
44
#defineWIN32_ONLY_COMPILER
@@ -289,6 +289,19 @@ typedef unsigned short mode_t;
289289
#defineisnan(x) _isnan(x)
290290
#definefinite(x) _finite(x)
291291

292+
#ifndefBIG_ENDIAN
293+
#defineBIG_ENDIAN4321
294+
#endif
295+
#ifndefLITTLE_ENDIAN
296+
#defineLITTLE_ENDIAN1234
297+
#endif
298+
#ifndefPDP_ENDIAN
299+
#definePDP_ENDIAN3412
300+
#endif
301+
302+
#ifndefBYTE_ORDER
303+
#defineBYTE_ORDER LITTLE_ENDIAN
304+
#endif
292305

293306
/* Pulled from Makefile.port in mingw */
294307
#defineDLSUFFIX ".dll"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp