Skip to content

Commit

Permalink
fix another pair of build warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
lloyd committed Apr 25, 2011
1 parent 18e45d1 commit 88a3c16
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions perf/perftest.c
Expand Up @@ -25,15 +25,15 @@
* portable format */
#ifndef WIN32
#include <sys/time.h>
double mygettime(void) {
static double mygettime(void) {
struct timeval now;
gettimeofday(&now, NULL);
return now.tv_sec + (now.tv_usec / 1000000.0);
}
#else
#define _WIN32 1
#include <windows.h>
double mygettime(void) {
static double mygettime(void) {
long long tval;
FILETIME ft;
GetSystemTimeAsFileTime(&ft);
Expand Down
2 changes: 1 addition & 1 deletion src/yajl_tree.c
Expand Up @@ -25,7 +25,7 @@

#include "yajl_parser.h"

#if WIN32
#ifdef WIN32
#define snprintf sprintf_s
#endif

Expand Down

0 comments on commit 88a3c16

Please sign in to comment.