mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Windows 64bit fixes
Fixed udf_example, so tests now can also run udf on win. sql/udf_example.def: BitKeeper file /home/georg/work/mysql/prod/mysql-5.1-win/sql/udf_example.def include/config-win.h: removed USE_32_BIT_TIME include/my_time.h: Fixed size of my_time for Win64 (should be 64bit) mysql-test/mysql-test-run.pl: Added windows paths for udf_example sql/CMakeLists.txt: Added udf_example.dll sql/udf_example.c: Windows doesn't know about socket.h and friends. Use winsock.h instead
This commit is contained in:
@@ -33,7 +33,12 @@ extern uchar days_in_month[];
|
||||
Portable time_t replacement.
|
||||
Should be signed and hold seconds for 1902-2038 range.
|
||||
*/
|
||||
#if defined(_WIN64) || defined(WIN64)
|
||||
/* on Win64 long is still 4 bytes (not 8!) */
|
||||
typedef LONG64 my_time_t;
|
||||
#else
|
||||
typedef long my_time_t;
|
||||
#endif
|
||||
|
||||
#define MY_TIME_T_MAX LONG_MAX
|
||||
#define MY_TIME_T_MIN LONG_MIN
|
||||
|
Reference in New Issue
Block a user