sqlite3 compilation

sqlite3 compilation on VS2017
出現

1>sqlite3.c(39053): error C4996: 'GetVersionExA': 宣告為已被取代
1>C:\Program Files (x86)\Windows Kits\8.1\Include\um\sysinfoapi.h(433): note: 請參閱 'GetVersionExA' 的宣告
1>sqlite3.c(39063): error C4996: 'GetVersionExW': 宣告為已被取代
1>C:\Program Files (x86)\Windows Kits\8.1\Include\um\sysinfoapi.h(442): note: 請參閱 'GetVersionExW' 的宣告

在 sqite3.c加上 #pragma warning(disable: 4996) 即可

This entry was posted in Library. Bookmark the permalink.

Leave a Reply