Skip to content

Commit 094745e

Browse files
committed
Move Win32 related defines and includes
1 parent e903794 commit 094745e

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

ext/odbc/php_odbc.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,6 @@
4343
#include "ext/standard/head.h"
4444
#include "php_ini.h"
4545

46-
#ifdef PHP_WIN32
47-
#include <winsock2.h>
48-
49-
#define ODBC_TYPE "Win32"
50-
#define PHP_ODBC_TYPE ODBC_TYPE
51-
52-
#endif
53-
5446
#define PHP_ODBC_BINMODE_PASSTHRU 0
5547
#define PHP_ODBC_BINMODE_RETURN 1
5648
#define PHP_ODBC_BINMODE_CONVERT 2

ext/odbc/php_odbc_includes.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,13 @@
162162
#include <sqlext.h>
163163
#endif
164164

165+
#ifdef PHP_WIN32
166+
#include <winsock2.h>
167+
168+
#define ODBC_TYPE "Win32"
169+
#define PHP_ODBC_TYPE ODBC_TYPE
170+
171+
#endif
165172

166173
/* Common defines */
167174

0 commit comments

Comments
 (0)