Fix MSVC compilation
This commit is contained in:
parent
37d129a13d
commit
7a6a0ee7af
|
@ -46,7 +46,11 @@ static void *d3dfonts_w32_init_font(void *video_data,
|
||||||
OUT_TT_PRECIS,
|
OUT_TT_PRECIS,
|
||||||
CLIP_DEFAULT_PRECIS,
|
CLIP_DEFAULT_PRECIS,
|
||||||
DEFAULT_PITCH,
|
DEFAULT_PITCH,
|
||||||
"Verdana" /* Hardcode FTL */
|
#ifdef _MSC_VER /* MSVC needs w_char* */
|
||||||
|
L"Verdana" /* Hardcode FTL */
|
||||||
|
#else
|
||||||
|
"Veranda"
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
d3dfonts = (d3dfonts_t*)calloc(1, sizeof(*d3dfonts));
|
d3dfonts = (d3dfonts_t*)calloc(1, sizeof(*d3dfonts));
|
||||||
|
|
|
@ -125,7 +125,7 @@ bool netplay_discovery_driver_ctl(enum rarch_netplay_discovery_ctl_state state,
|
||||||
|
|
||||||
/* Make it broadcastable */
|
/* Make it broadcastable */
|
||||||
#if defined(SOL_SOCKET) && defined(SO_BROADCAST)
|
#if defined(SOL_SOCKET) && defined(SO_BROADCAST)
|
||||||
setsockopt(lan_ad_client_fd, SOL_SOCKET, SO_BROADCAST, (void *) &canBroadcast, sizeof(canBroadcast));
|
setsockopt(lan_ad_client_fd, SOL_SOCKET, SO_BROADCAST, (const char *) &canBroadcast, sizeof(canBroadcast));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Put together the request */
|
/* Put together the request */
|
||||||
|
|
Loading…
Reference in New Issue