1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-11-22 01:02:20 -05:00

Ignore generated config.h properly on Unix

This commit is contained in:
Berke Viktor 2012-10-27 01:26:32 +02:00
parent aae8c393ed
commit a98dc18d55
18 changed files with 39 additions and 14 deletions

1
.gitignore vendored
View File

@ -9,6 +9,7 @@ autom4te.cache/
compile
config.guess
config.h.in
config.h
config.log
config.status
config.sub

View File

@ -32,7 +32,11 @@
#endif
#undef PACKAGE
#include "../../config.h" /* for #define OLD_PERL */
#ifdef WIN32
#include "../../config-win32.h" /* for #define OLD_PERL */
#else
#include "../../config.h"
#endif
#include "hexchat-plugin.h"
static xchat_plugin *ph; /* plugin handle */

View File

@ -58,7 +58,7 @@
#ifdef WIN32
#include "../../src/dirent/dirent-win32.h"
#include "../../config.h"
#include "../../config-win32.h"
#else
#include <unistd.h>
#include <dirent.h>

View File

@ -11,7 +11,7 @@
</ProjectConfiguration>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\config.h" />
<ClInclude Include="..\..\config-win32.h" />
<ClInclude Include="cfgfiles.h" />
<ClInclude Include="chanopt.h" />
<ClInclude Include="ctcp.h" />

View File

@ -107,7 +107,7 @@
<ClInclude Include="hexchat-plugin.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\config.h">
<ClInclude Include="..\..\config-win32.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="strlutil.h">

View File

@ -11,7 +11,7 @@
</ProjectConfiguration>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\config.h" />
<ClInclude Include="..\..\config-win32.h" />
<ClInclude Include="cfgfiles.h" />
<ClInclude Include="chanopt.h" />
<ClInclude Include="ctcp.h" />

View File

@ -107,7 +107,7 @@
<ClInclude Include="hexchat-plugin.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\config.h">
<ClInclude Include="..\..\config-win32.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="strlutil.h">

View File

@ -1,4 +1,8 @@
#ifdef WIN32
#include "../../config-win32.h"
#else
#include "../../config.h"
#endif
#include <glib.h>
#include <time.h> /* need time_t */

View File

@ -21,7 +21,7 @@
#else
#include "../../config.h"
#include "../../config-win32.h"
#ifdef USE_IPV6
#include <winsock2.h>
#include <ws2tcpip.h>

View File

@ -23,12 +23,13 @@
#include <stdio.h>
#include <glib.h>
#ifndef WIN32
#ifdef WIN32
#include "../../config-win32.h" /* grab USE_IPV6 and LOOKUPD defines */
#else
#include <unistd.h>
#include "../../config.h"
#endif
#include "../../config.h" /* grab USE_IPV6 and LOOKUPD defines */
#define WANTSOCKET
#define WANTARPA
#define WANTDNS

View File

@ -22,11 +22,13 @@
#include <openssl/err.h> /* ERR_() */
#ifdef WIN32
#include <openssl/rand.h> /* RAND_seed() */
#include "../../config-win32.h" /* HAVE_SNPRINTF */
#else
#include "../../config.h"
#endif
#include <time.h> /* asctime() */
#include <string.h> /* strncpy() */
#include "ssl.h" /* struct cert_info */
#include "../../config.h" /* HAVE_SNPRINTF */
#ifndef HAVE_SNPRINTF
#include <glib.h>

View File

@ -33,12 +33,14 @@
#include <process.h>
#include <io.h>
#include "../dirent/dirent-win32.h"
#include "../../config-win32.h"
#else
#include <unistd.h>
#include <pwd.h>
#include <sys/time.h>
#include <sys/utsname.h>
#include <dirent.h>
#include "../../config.h"
#endif
#include <fcntl.h>
@ -48,7 +50,6 @@
#include <glib.h>
#include <ctype.h>
#include "util.h"
#include "../../config.h"
#if defined (USING_FREEBSD) || defined (__APPLE__)
#include <sys/sysctl.h>

View File

@ -1,4 +1,8 @@
#ifdef WIN32
#include "../../config-win32.h"
#else
#include "../../config.h"
#endif
#define DISPLAY_NAME "HexChat"

View File

@ -1,5 +1,5 @@
#include <winver.h>
#include "../../config.h"
#include "../../config-win32.h"
#include "../../resource.h"
XC_ICON ICON "../../hexchat.ico"

View File

@ -23,7 +23,11 @@
*
*/
#ifdef WIN32
#include "../../config-win32.h"
#else
#include "../../config.h"
#endif
#include "sexy-iso-codes.h"

View File

@ -50,7 +50,11 @@
#include <gtk/gtkwindow.h>
#ifdef XCHAT
#ifdef WIN32
#include "../../config-win32.h"
#else
#include "../../config.h" /* can define USE_XLIB here */
#endif
#else
#define USE_XLIB
#endif

View File

@ -24,7 +24,7 @@
#include <stdlib.h>
#include <string.h>
#include <malloc.h>
#include "../../config.h"
#include "../../config-win32.h"
char *
comma ()