Skip to content

Commit

Permalink
Windows + MinGW GCC fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
syoyo committed Apr 6, 2012
1 parent 1953eab commit de234a4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,8 @@ the component jpgs.
Saved IMG_0001-stk_2.jpg
Saved IMG_0001-stk_3.jpg


On Windows + MinGW gcc compiler, you need to compile lfpsplitter with,

gcc.exe -o lfpspilitter.exe -O3 -Wall lfpsplitter.c -lwsock32

5 changes: 5 additions & 0 deletions lfpsplitter.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef _WIN32
#include <winsock.h>
typedef unsigned int uint32_t;
#else
#include <arpa/inet.h>
#endif
#include "lfpsplitter.h"

#define SHA1_LENGTH 45
Expand Down

0 comments on commit de234a4

Please sign in to comment.