Skip to content

Commit

Permalink
Merge pull request libcheck#124 from brarcher/remove-include
Browse files Browse the repository at this point in the history
Define pid_t in check.h for Windows
  • Loading branch information
brarcher authored Jul 25, 2017
2 parents fe58e32 + e3bb3d6 commit 34c184e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/check.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ CK_CPPSTART

#include <sys/types.h>

#if _MSC_VER
/* define pid_t for Windows, as it is needed later */
#define pid_t int
#endif /* _MSC_VER */

/*
* Used to create the linker script for hiding lib-local symbols. Shall
* be put directly in front of the exported symbol.
Expand Down
2 changes: 1 addition & 1 deletion tests/ex_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* MA 02110-1301, USA.
*/

#include "../lib/libcompat.h"


#include <stdlib.h>
#include <stdio.h>
Expand Down

0 comments on commit 34c184e

Please sign in to comment.