Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

Squash MSVC warnings. #423

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/error.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@
#ifndef GUMBO_ERROR_H_
#define GUMBO_ERROR_H_
#ifdef _MSC_VER
#ifndef _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_WARNINGS
#endif
#endif
#include <stdint.h>

#include "gumbo.h"
Expand Down
2 changes: 2 additions & 0 deletions src/gumbo.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@
#define GUMBO_GUMBO_H_

#ifdef _MSC_VER
#ifndef _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_WARNINGS
#endif
#define fileno _fileno
#endif

Expand Down
2 changes: 2 additions & 0 deletions src/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@
#ifndef GUMBO_UTIL_H_
#define GUMBO_UTIL_H_
#ifdef _MSC_VER
#ifndef _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_WARNINGS
#endif
#endif
#include <stdbool.h>
#include <stddef.h>

Expand Down