Fix C++ build.

This commit is contained in:
Themaister 2012-01-24 22:31:26 +01:00
parent 03a892c7f2
commit bda70a9168
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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);