Browse files

Issue 179: Build problem on solaris with Sun compiler

  • Loading branch information...
1 parent 9b7799f commit ca15ffbd3ff085ca7586dc11eabf20933f1f88f2 @mkleehammer committed Jul 10, 2011
Showing with 2 additions and 1 deletion.
  1. +1 −0 src/getdata.cpp
  2. +1 −1 src/pyodbc.h
View
1 src/getdata.cpp
@@ -9,6 +9,7 @@
#include "errors.h"
#include "dbspecific.h"
#include "sqlwchar.h"
+#include <alloca.h>
void GetData_init()
{
View
2 src/pyodbc.h
@@ -106,7 +106,7 @@ inline void UNUSED(...) { }
#include <stdarg.h>
-#if defined(__GNUC__) && !defined(__MINGW32__)
+#if defined(__SUNPRO_CC) || defined(__SUNPRO_C) || (defined(__GNUC__) && !defined(__MINGW32__))
#define CDECL cdecl
#define min(X,Y) ((X) < (Y) ? (X) : (Y))
#define max(X,Y) ((X) > (Y) ? (X) : (Y))

0 comments on commit ca15ffb

Please sign in to comment.