Browse Source

Fix up the test_util_file test for builds on Windows VS2015.

tags/json-c-0.14-20200419
Eric Haszlakiewicz 5 years ago
parent
commit
b99be9cf4e
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      tests/test_util_file.c

+ 9
- 0
tests/test_util_file.c View File

@@ -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;


Loading…
Cancel
Save