1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-11-25 10:42:18 -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 compile
config.guess config.guess
config.h.in config.h.in
config.h
config.log config.log
config.status config.status
config.sub config.sub

View File

@ -32,7 +32,11 @@
#endif #endif
#undef PACKAGE #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" #include "hexchat-plugin.h"
static xchat_plugin *ph; /* plugin handle */ static xchat_plugin *ph; /* plugin handle */

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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