Skip to content

Commit

Permalink
use _getpid for getpid on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jcschaff committed May 25, 2024
1 parent 8165986 commit 461304e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions FronTierLib/util/simpleio.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include <sys/stat.h>
#ifndef WIN32
#include <sys/utsname.h>
#else
#include <process.h>
#define getpid _getpid
#endif
static const char *scan_float_fmt = "%lf";

Expand Down
4 changes: 4 additions & 0 deletions libzip-1.2.0/lib/mkstemp.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@
#include <fcntl.h>
#ifdef _WIN32
#include <io.h>
#include <process.h>
#define getpid _getpid
#else
#include <unistd.h>
#endif
#include <stdio.h>
#include <stdlib.h>
Expand Down

0 comments on commit 461304e

Please sign in to comment.