- The first hunk is necessary to build psqlodbc using Borland C++ Builder 6.0 [I successfully built the whole DLL, which requires a few other patches]
- The second hunk is necessary as Borland's sscanf would do all sorts of things with rest[] when CodeGuard is active (I wonder if it's not their way of hinting that we have an opportunity for a buffer overrun here).
Cyrille Ch?p?lov <cyrille@softek.fr>
#endif
#ifdef __CYGWIN__
-#define TIMEZONE_GLOBAL _timezone
+# define TIMEZONE_GLOBAL _timezone
#elif defined(WIN32) || defined(HAVE_INT_TIMEZONE)
-#define TIMEZONE_GLOBAL timezone
+# ifdef __BORLANDC__
+# define timezone _timzone
+# define daylight _daylight
+# define TIMEZONE_GLOBAL _timezone
+# else
+# define TIMEZONE_GLOBAL timezone
+# endif
#endif
/*