Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
f6e00ae1
Commit
f6e00ae1
authored
Oct 19, 2006
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Further MSVC portability fixes from Magnus.
parent
6bc1f9b3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
2 deletions
+18
-2
contrib/earthdistance/earthdistance.c
contrib/earthdistance/earthdistance.c
+4
-1
src/include/port/win32.h
src/include/port/win32.h
+14
-1
No files found.
contrib/earthdistance/earthdistance.c
View file @
f6e00ae1
/* $PostgreSQL: pgsql/contrib/earthdistance/earthdistance.c,v 1.1
1 2006/05/30 22:12:12
tgl Exp $ */
/* $PostgreSQL: pgsql/contrib/earthdistance/earthdistance.c,v 1.1
2 2006/10/19 20:03:07
tgl Exp $ */
#include "postgres.h"
#include "postgres.h"
#ifdef WIN32
#define _USE_MATH_DEFINES
#endif
#include <math.h>
#include <math.h>
#include "utils/geo_decls.h"
/* for Pt */
#include "utils/geo_decls.h"
/* for Pt */
...
...
src/include/port/win32.h
View file @
f6e00ae1
/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.6
2 2006/10/04 00:30:10 momjian
Exp $ */
/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.6
3 2006/10/19 20:03:08 tgl
Exp $ */
#if defined(_MSC_VER) || defined(__BORLANDC__)
#if defined(_MSC_VER) || defined(__BORLANDC__)
#define WIN32_ONLY_COMPILER
#define WIN32_ONLY_COMPILER
...
@@ -289,6 +289,19 @@ typedef unsigned short mode_t;
...
@@ -289,6 +289,19 @@ typedef unsigned short mode_t;
#define isnan(x) _isnan(x)
#define isnan(x) _isnan(x)
#define finite(x) _finite(x)
#define finite(x) _finite(x)
#ifndef BIG_ENDIAN
#define BIG_ENDIAN 4321
#endif
#ifndef LITTLE_ENDIAN
#define LITTLE_ENDIAN 1234
#endif
#ifndef PDP_ENDIAN
#define PDP_ENDIAN 3412
#endif
#ifndef BYTE_ORDER
#define BYTE_ORDER LITTLE_ENDIAN
#endif
/* Pulled from Makefile.port in mingw */
/* Pulled from Makefile.port in mingw */
#define DLSUFFIX ".dll"
#define DLSUFFIX ".dll"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment