fix another pair of build warnings

This commit is contained in:
Lloyd Hilaiel 2011-04-25 12:18:44 -06:00
parent 18e45d1e52
commit 88a3c16c78
2 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@
* 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);
@ -33,7 +33,7 @@ double mygettime(void) {
#else
#define _WIN32 1
#include <windows.h>
double mygettime(void) {
static double mygettime(void) {
long long tval;
FILETIME ft;
GetSystemTimeAsFileTime(&ft);

View File

@ -25,7 +25,7 @@
#include "yajl_parser.h"
#if WIN32
#ifdef WIN32
#define snprintf sprintf_s
#endif