Probably fix Windows build.
This commit is contained in:
parent
4637cf9221
commit
08fe840bfd
@ -23,9 +23,9 @@ if SM.mysql_root:
|
||||
if builder.target.platform == 'linux':
|
||||
binary.compiler.postlink += ['-lrt']
|
||||
elif builder.target.platform == 'windows':
|
||||
binary.compiler.defines += ['WIN32_LEAN_AND_MEAN']
|
||||
binary.compiler.postlink += [
|
||||
os.path.join(SM.mysql_root[arch], 'lib', 'opt', 'mysqlclient.lib'),
|
||||
os.path.join(SM.mysql_root[arch], 'lib', 'opt', 'zlib.lib'),
|
||||
os.path.join(SM.mysql_root[arch], 'lib', 'mysqlclient.lib'),
|
||||
'wsock32.lib'
|
||||
]
|
||||
|
||||
|
@ -36,14 +36,12 @@
|
||||
#include <IDBDriver.h>
|
||||
#include <sm_platform.h>
|
||||
#if defined PLATFORM_WINDOWS
|
||||
#include <winsock.h>
|
||||
#include <WinSock2.h>
|
||||
#endif
|
||||
|
||||
#include <mysql.h>
|
||||
#if !defined(PLATFORM_WINDOWS)
|
||||
# include <my_global.h>
|
||||
# include <my_sys.h>
|
||||
#endif
|
||||
#include <my_global.h>
|
||||
#include <my_sys.h>
|
||||
|
||||
#include <sh_string.h>
|
||||
#include <sh_list.h>
|
||||
|
Loading…
Reference in New Issue
Block a user