Browse Source

- Fix build with Visual Studio .NET. The MySQL team said they'll commit

- their fix a long time ago and never did. One day they'll update the
- whole MySQL client library.
experimental/new_ui_api
Andi Gutmans 25 years ago
parent
commit
35befd3eb3
  1. 2
      ext/mysql/libmysql/strto.c
  2. 2
      ext/mysql/libmysql/strtoll.c
  3. 2
      ext/mysql/libmysql/strtoull.c

2
ext/mysql/libmysql/strto.c

@ -28,7 +28,7 @@ This file is public domain and comes with NO WARRANTY of any kind */
#include "my_sys.h" /* defines errno */
#include <errno.h>
#ifdef LONGLONG
#ifdef MYSQL_LONGLONG
#define UTYPE_MAX (~(ulonglong) 0)
#define TYPE_MIN LONGLONG_MIN
#define TYPE_MAX LONGLONG_MAX

2
ext/mysql/libmysql/strtoll.c

@ -6,6 +6,6 @@ This file is public domain and comes with NO WARRANTY of any kind */
#include <global.h>
#include <m_string.h>
#if !defined(HAVE_STRTOULL) && defined(HAVE_LONG_LONG)
#define LONGLONG
#define MYSQL_LONGLONG
#include "strto.c"
#endif

2
ext/mysql/libmysql/strtoull.c

@ -7,6 +7,6 @@ This file is public domain and comes with NO WARRANTY of any kind */
#include <m_string.h>
#if !defined(HAVE_STRTOULL) && defined(HAVE_LONG_LONG)
#define UNSIGNED
#define LONGLONG
#define MYSQL_LONGLONG
#include "strto.c"
#endif
Loading…
Cancel
Save