Skip to content

Commit

Permalink
Fix compiling for Windows.
Browse files Browse the repository at this point in the history
Signed-off-by: Reimar Döffinger <[email protected]>
  • Loading branch information
rdoeffinger committed Jun 24, 2015
1 parent 4b2c871 commit 8548476
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions image.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,14 @@
#include <malloc.h>
#include <string.h>
#include <ctype.h>
#ifdef _WIN32
static inline unsigned htonl(unsigned i)
{
return (i >> 24) | ((i & 0x00ff0000) >> 8) | ((i & 0x0000ff00) << 8) | (i << 24);
}
#else
#include <arpa/inet.h>
#endif
#include "image.h"

#define INTERLACE
Expand Down

0 comments on commit 8548476

Please sign in to comment.