mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-30 11:40:32 +00:00
Fix C++ build.
This commit is contained in:
parent
03a892c7f2
commit
bda70a9168
@ -27,14 +27,14 @@
|
||||
|
||||
enum snes_tracker_type
|
||||
{
|
||||
#ifdef HAVE_PYTHON
|
||||
SSNES_STATE_PYTHON,
|
||||
#endif
|
||||
SSNES_STATE_CAPTURE,
|
||||
SSNES_STATE_CAPTURE_PREV,
|
||||
SSNES_STATE_TRANSITION,
|
||||
SSNES_STATE_TRANSITION_COUNT,
|
||||
SSNES_STATE_TRANSITION_PREV,
|
||||
#ifdef HAVE_PYTHON
|
||||
SSNES_STATE_PYTHON
|
||||
#endif
|
||||
SSNES_STATE_TRANSITION_PREV
|
||||
};
|
||||
|
||||
enum snes_ram_type
|
||||
|
@ -57,7 +57,7 @@ int getaddrinfo_ssnes__(const char *node, const char *service,
|
||||
info->ai_family = PF_INET;
|
||||
info->ai_socktype = hints->ai_socktype;
|
||||
|
||||
struct sockaddr_in *in_addr = calloc(1, sizeof(*in_addr));
|
||||
struct sockaddr_in *in_addr = (struct sockaddr_in*)calloc(1, sizeof(*in_addr));
|
||||
if (!in_addr)
|
||||
{
|
||||
free(info);
|
||||
|
Loading…
Reference in New Issue
Block a user