Skip to content

Commit

Permalink
Merge branch 'master' into ipv6
Browse files Browse the repository at this point in the history
  • Loading branch information
proller committed Oct 8, 2014
2 parents 512a43b + 8096edb commit b3f2bf9
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 2 deletions.
59 changes: 59 additions & 0 deletions premake4.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
solution "enet"
configurations { "Debug", "Release" }
platforms { "x32", "x64" }

project "enet_static"
kind "StaticLib"
language "C"

files { "*.c" }

includedirs { "include/" }

configuration "Debug"
targetsuffix "d"

defines({ "DEBUG" })

flags { "Symbols" }

configuration "Release"
defines({ "NDEBUG" })

flags { "Optimize" }

configuration { "Debug", "x64" }
targetsuffix "64d"

configuration { "Release", "x64" }
targetsuffix "64"

project "enet"
kind "SharedLib"
language "C"

files { "*.c" }

includedirs { "include/" }

defines({"ENET_DLL=1" })

configuration "Debug"
targetsuffix "d"

defines({ "DEBUG" })

flags { "Symbols" }

configuration "Release"
defines({ "NDEBUG" })

flags { "Optimize" }

configuration { "Debug", "x64" }
targetsuffix "64d"

configuration { "Release", "x64" }
targetsuffix "64"


4 changes: 3 additions & 1 deletion protocol.c
Original file line number Diff line number Diff line change
Expand Up @@ -1191,7 +1191,9 @@ enet_protocol_handle_incoming_commands (ENetHost * host, ENetEvent * event)
static int
enet_protocol_receive_incoming_commands (ENetHost * host, ENetEvent * event)
{
for (;;)
int packets;

for (packets = 0; packets < 256; ++ packets)
{
int receivedLength;
ENetBuffer buffer;
Expand Down
3 changes: 2 additions & 1 deletion win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
*/
#ifdef _WIN32

#include <time.h>
#define ENET_BUILDING_LIB 1
#include "enet/enet.h"
#include <windows.h>
#include <mmsystem.h>

static enet_uint32 timeBase = 0;

Expand Down

0 comments on commit b3f2bf9

Please sign in to comment.