summaryrefslogtreecommitdiff
path: root/ext/mssql/php_mssql.h
diff options
context:
space:
mode:
authorFrank M. Kromann <fmk@php.net>2004-04-20 23:37:26 +0000
committerFrank M. Kromann <fmk@php.net>2004-04-20 23:37:26 +0000
commitb24de2d58a1e596677698309020c4b469b839cf3 (patch)
tree5725ce97adeae2a6db2eb89d2ba36d3e902a43d4 /ext/mssql/php_mssql.h
parent4c5521ad813e842988f7ee33ada9ce6e913c5f63 (diff)
downloadphp-git-b24de2d58a1e596677698309020c4b469b839cf3.tar.gz
MFH: Fix #28007. Compile fails when the SHORT type is undefined (older versions of FreeTDS)
Diffstat (limited to 'ext/mssql/php_mssql.h')
-rw-r--r--ext/mssql/php_mssql.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/mssql/php_mssql.h b/ext/mssql/php_mssql.h
index 6f2f3b8188..487ded51b7 100644
--- a/ext/mssql/php_mssql.h
+++ b/ext/mssql/php_mssql.h
@@ -37,6 +37,9 @@
#include "sqldb.h"
#if HAVE_FREETDS
+#ifndef SHORT
+typedef short SHORT;
+#endif
#define SQLTEXT SYBTEXT
#define SQLCHAR SYBCHAR
#define SQLVARCHAR SYBVARCHAR