Commit 6fc36029 authored by Libretro-Admin's avatar Libretro-Admin
Browse files

Should compile and link now for various MSVC versions

parent 737f42f2
......@@ -418,6 +418,7 @@ CXXFLAGS += -D_XBOX -D_XBOX1
STATIC_LINKING=1
HAS_GCC := 0
USE_CODEC_FLAC=0
LIBS += ws2_32.lib
# Windows MSVC 2010 Xbox 360
else ifeq ($(platform), xbox360_msvc2010)
......@@ -434,6 +435,7 @@ CFLAGS += -D_XBOX -D_XBOX360
CXXFLAGS += -D_XBOX -D_XBOX360
STATIC_LINKING=1
HAS_GCC := 0
LIBS += ws2_32.lib
# Windows MSVC 2010 x64
else ifeq ($(platform), windows_msvc2010_x64)
......@@ -458,7 +460,8 @@ export LIB := $(LIB);$(WindowsSdkDir)
TARGET := $(TARGET_NAME)_libretro.dll
PSS_STYLE :=2
LDFLAGS += -DLL
LIBS =
LIBS += ws2_32.lib
# Windows MSVC 2010 x86
else ifeq ($(platform), windows_msvc2010_x86)
CC = cl.exe
......@@ -482,7 +485,7 @@ export LIB := $(LIB);$(WindowsSdkDir)
TARGET := $(TARGET_NAME)_libretro.dll
PSS_STYLE :=2
LDFLAGS += -DLL
LIBS =
LIBS += ws2_32.lib
# Windows MSVC 2005 x86
else ifeq ($(platform), windows_msvc2005_x86)
......@@ -504,6 +507,8 @@ PSS_STYLE :=2
LDFLAGS += -DLL
CFLAGS += -D_CRT_SECURE_NO_DEPRECATE
LIBS += ws2_32.lib
# Windows MSVC 2003 x86
else ifeq ($(platform), windows_msvc2003_x86)
CC = cl.exe
......@@ -524,6 +529,8 @@ PSS_STYLE :=2
LDFLAGS += -DLL
CFLAGS += -D_CRT_SECURE_NO_DEPRECATE
LIBS += ws2_32.lib
# Windows MSVC 2017 all architectures
else ifneq (,$(findstring windows_msvc2017,$(platform)))
......@@ -621,6 +628,8 @@ else ifneq (,$(findstring windows_msvc2017,$(platform)))
USE_CODEC_FLAC=0
LIBS += ws2_32.lib
# Windows
else
EXT ?= dll
......
......@@ -20,6 +20,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
// Quake is a trademark of Id Software, Inc., (c) 1996 Id Software, Inc. All
// rights reserved.
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <boolean.h>
......
......@@ -19,6 +19,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// cl_parse.c -- parse a message received from the server
#include <stdio.h>
#include "cdaudio.h"
#include "client.h"
#include "cmd.h"
......
......@@ -20,7 +20,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// common.c -- misc functions used in client and server
#include <stdio.h>
#include <ctype.h>
#include <retro_dirent.h>
#include <stdarg.h>
......
......@@ -18,6 +18,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// cvar.c -- dynamic variable tracking
#include <stdio.h>
#include "cmd.h"
#include "common.h"
......
......@@ -56,6 +56,8 @@ extern "C" {
#undef UNICODE /* Do not bother with UNICODE at this time. */
#include <direct.h>
#include <stddef.h>
#define _USE_MATH_DEFINES
#include <math.h>
/* Python headers defines ssize_t and sets HAVE_SSIZE_T.
......@@ -125,4 +127,3 @@ typedef int ssize_t;
#endif
#endif
......@@ -20,7 +20,13 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include <stdio.h>
#ifdef _MSC_VER
#include <compat/msvc.h>
#endif
#include <net/net_compat.h>
#include <net/net_socket.h>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment