mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-12 08:40:19 +00:00
Eliminate even more warnings and bump warning level to 3
Shouldn't need to go any higher, level 4+ gives insane warnings
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
#include "fe.h"
|
||||
#include "text.h"
|
||||
#include "hexchatc.h"
|
||||
#include "typedef.h"
|
||||
|
||||
#ifdef WIN32
|
||||
#include <io.h>
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
#include "text.h"
|
||||
#include "util.h"
|
||||
#include "hexchatc.h"
|
||||
#include "typedef.h"
|
||||
|
||||
|
||||
int ignored_ctcp = 0; /* keep a count of all we ignore */
|
||||
|
||||
@@ -44,6 +44,7 @@
|
||||
typedef struct session hexchat_context;
|
||||
#include "hexchat-plugin.h"
|
||||
#include "plugin.h"
|
||||
#include "typedef.h"
|
||||
|
||||
|
||||
#include "hexchatc.h"
|
||||
|
||||
@@ -43,6 +43,7 @@
|
||||
#include "outbound.h"
|
||||
#include "hexchatc.h"
|
||||
#include "text.h"
|
||||
#include "typedef.h"
|
||||
#ifdef WIN32
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
#ifndef HEXCHAT_TYPEDEF_H
|
||||
#define HEXCHAT_TYPEDEF_H
|
||||
|
||||
#ifdef WIN32
|
||||
|
||||
#ifndef SSIZE_T_DEFINED
|
||||
#ifdef ssize_t
|
||||
#undef ssize_t
|
||||
@@ -9,3 +14,12 @@ typedef _W64 int ssize_t;
|
||||
#endif
|
||||
#define SSIZE_T_DEFINED
|
||||
#endif
|
||||
|
||||
#ifndef fstat
|
||||
#define fstat _fstat
|
||||
#define stat _stat
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user