mirror of
https://github.com/json-c/json-c.git
synced 2026-03-21 14:09:06 +08:00
Fix up the test_util_file test for builds on Windows VS2015.
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
#include "strerror_override.h"
|
||||
#include "strerror_override_private.h"
|
||||
#ifdef WIN32
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
#include <io.h>
|
||||
#endif /* defined(WIN32) */
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stddef.h>
|
||||
@@ -23,6 +28,10 @@ static void test_read_closed(void);
|
||||
static void test_write_to_file();
|
||||
static void stat_and_cat(const char *file);
|
||||
|
||||
#ifndef PATH_MAX
|
||||
#define PATH_MAX 256
|
||||
#endif
|
||||
|
||||
static void test_write_to_file()
|
||||
{
|
||||
json_object *jso;
|
||||
|
||||
Reference in New Issue
Block a user