mirror of
https://github.com/hexchat/hexchat.git
synced 2024-11-10 05:02:50 +01:00
win32: Use config.h instead of config-win32.h
This commit is contained in:
parent
806b98dfc2
commit
b8c02f71d9
@ -32,11 +32,8 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#undef PACKAGE
|
#undef PACKAGE
|
||||||
#ifdef WIN32
|
|
||||||
#include "../../config-win32.h" /* for #define OLD_PERL */
|
|
||||||
#else
|
|
||||||
#include "../../config.h"
|
#include "../../config.h"
|
||||||
#endif
|
|
||||||
#include "hexchat-plugin.h"
|
#include "hexchat-plugin.h"
|
||||||
|
|
||||||
static hexchat_plugin *ph; /* plugin handle */
|
static hexchat_plugin *ph; /* plugin handle */
|
||||||
|
@ -60,12 +60,12 @@
|
|||||||
#include <direct.h>
|
#include <direct.h>
|
||||||
#include <glib/gstdio.h>
|
#include <glib/gstdio.h>
|
||||||
#include "../../src/dirent/dirent-win32.h"
|
#include "../../src/dirent/dirent-win32.h"
|
||||||
#include "../../config-win32.h"
|
|
||||||
#else
|
#else
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "../../config.h"
|
||||||
#include "hexchat-plugin.h"
|
#include "hexchat-plugin.h"
|
||||||
#undef _POSIX_C_SOURCE /* Avoid warning: also in /usr/include/features.h from glib.h */
|
#undef _POSIX_C_SOURCE /* Avoid warning: also in /usr/include/features.h from glib.h */
|
||||||
#include <Python.h>
|
#include <Python.h>
|
||||||
|
@ -77,8 +77,8 @@
|
|||||||
<ClCompile Include="hexchat.c" />
|
<ClCompile Include="hexchat.c" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="..\..\config-win32.h.tt" />
|
<None Include="..\..\win32\config.h.tt" />
|
||||||
<ClInclude Include="..\..\config-win32.h" />
|
<ClInclude Include="..\..\config.h" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<PropertyGroup Label="Globals">
|
<PropertyGroup Label="Globals">
|
||||||
<ProjectGuid>{87554B59-006C-4D94-9714-897B27067BA3}</ProjectGuid>
|
<ProjectGuid>{87554B59-006C-4D94-9714-897B27067BA3}</ProjectGuid>
|
||||||
@ -160,7 +160,7 @@
|
|||||||
<PreBuildEvent>
|
<PreBuildEvent>
|
||||||
<Command><![CDATA[
|
<Command><![CDATA[
|
||||||
SET SOLUTIONDIR=$(SolutionDir)..\
|
SET SOLUTIONDIR=$(SolutionDir)..\
|
||||||
powershell -File "$(SolutionDir)..\version-template.ps1" "$(SolutionDir)..\config-win32.h.tt" "$(SolutionDir)..\config-win32.h"
|
powershell -File "$(SolutionDir)..\win32\version-template.ps1" "$(SolutionDir)..\win32\config.h.tt" "$(SolutionDir)..\config.h"
|
||||||
"$(DepsRoot)\bin\glib-genmarshal.exe" --prefix=_hexchat_marshal --header "$(ProjectDir)marshalers.list" > "$(ProjectDir)marshal.h"
|
"$(DepsRoot)\bin\glib-genmarshal.exe" --prefix=_hexchat_marshal --header "$(ProjectDir)marshalers.list" > "$(ProjectDir)marshal.h"
|
||||||
"$(DepsRoot)\bin\glib-genmarshal.exe" --prefix=_hexchat_marshal --body "$(ProjectDir)marshalers.list" > "$(ProjectDir)marshal.c"
|
"$(DepsRoot)\bin\glib-genmarshal.exe" --prefix=_hexchat_marshal --body "$(ProjectDir)marshalers.list" > "$(ProjectDir)marshal.c"
|
||||||
|
|
||||||
|
@ -104,7 +104,7 @@
|
|||||||
<ClInclude Include="hexchat-plugin.h">
|
<ClInclude Include="hexchat-plugin.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="..\..\config-win32.h">
|
<ClInclude Include="..\..\config.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="typedef.h">
|
<ClInclude Include="typedef.h">
|
||||||
@ -195,6 +195,6 @@
|
|||||||
</ClCompile>
|
</ClCompile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="..\..\config-win32.h.tt" />
|
<None Include="..\..\win32\config.h.tt" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
@ -17,11 +17,7 @@
|
|||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef WIN32
|
|
||||||
#include "../../config-win32.h"
|
|
||||||
#else
|
|
||||||
#include "../../config.h"
|
#include "../../config.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <glib/gstdio.h>
|
#include <glib/gstdio.h>
|
||||||
|
@ -47,7 +47,7 @@
|
|||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#include "../../config-win32.h"
|
#include "../../config.h"
|
||||||
#ifdef USE_IPV6
|
#ifdef USE_IPV6
|
||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
#include <ws2tcpip.h>
|
#include <ws2tcpip.h>
|
||||||
|
@ -23,12 +23,10 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifndef 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"
|
||||||
|
|
||||||
#define WANTSOCKET
|
#define WANTSOCKET
|
||||||
#define WANTARPA
|
#define WANTARPA
|
||||||
|
@ -27,10 +27,8 @@
|
|||||||
#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 "../../config.h"
|
||||||
#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 */
|
||||||
|
@ -35,16 +35,15 @@
|
|||||||
#include <io.h>
|
#include <io.h>
|
||||||
#include <VersionHelpers.h>
|
#include <VersionHelpers.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 "../../config.h"
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include "hexchat.h"
|
#include "hexchat.h"
|
||||||
|
@ -20,11 +20,7 @@
|
|||||||
#ifndef HEXCHAT_FE_GTK_H
|
#ifndef HEXCHAT_FE_GTK_H
|
||||||
#define HEXCHAT_FE_GTK_H
|
#define HEXCHAT_FE_GTK_H
|
||||||
|
|
||||||
#ifdef WIN32
|
|
||||||
#include "../../config-win32.h"
|
|
||||||
#else
|
|
||||||
#include "../../config.h"
|
#include "../../config.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
#define DISPLAY_NAME "HexChat"
|
#define DISPLAY_NAME "HexChat"
|
||||||
|
|
||||||
|
@ -99,7 +99,7 @@
|
|||||||
<PreBuildEvent>
|
<PreBuildEvent>
|
||||||
<Command><![CDATA[
|
<Command><![CDATA[
|
||||||
SET SOLUTIONDIR=$(SolutionDir)..\
|
SET SOLUTIONDIR=$(SolutionDir)..\
|
||||||
powershell -File "$(SolutionDir)..\version-template.ps1" "$(SolutionDir)..\src\fe-gtk\hexchat.rc.tt" "$(SolutionDir)..\src\fe-gtk\hexchat.rc.utf8"
|
powershell -File "$(SolutionDir)..\win32\version-template.ps1" "$(SolutionDir)..\src\fe-gtk\hexchat.rc.tt" "$(SolutionDir)..\src\fe-gtk\hexchat.rc.utf8"
|
||||||
REM hexchat.rc needs to be in UCS-2 or Resource Compiler will complain
|
REM hexchat.rc needs to be in UCS-2 or Resource Compiler will complain
|
||||||
powershell "Get-Content -Encoding UTF8 '$(SolutionDir)..\src\fe-gtk\hexchat.rc.utf8' | Out-File '$(SolutionDir)..\src\fe-gtk\hexchat.rc'; Remove-Item '$(SolutionDir)..\src\fe-gtk\hexchat.rc.utf8'"
|
powershell "Get-Content -Encoding UTF8 '$(SolutionDir)..\src\fe-gtk\hexchat.rc.utf8' | Out-File '$(SolutionDir)..\src\fe-gtk\hexchat.rc'; Remove-Item '$(SolutionDir)..\src\fe-gtk\hexchat.rc.utf8'"
|
||||||
"$(DepsRoot)\bin\glib-compile-resources.exe" --generate-source --sourcedir "$(DataDir)" --target "$(ProjectDir)resources.c" "$(DataDir)hexchat.gresource.xml"
|
"$(DepsRoot)\bin\glib-compile-resources.exe" --generate-source --sourcedir "$(DataDir)" --target "$(ProjectDir)resources.c" "$(DataDir)hexchat.gresource.xml"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#include <winver.h>
|
#include <winver.h>
|
||||||
#include "../../config-win32.h"
|
#include "../../config.h"
|
||||||
|
|
||||||
#define COMMA_VERSION <#= [string]::Join(',', $versionParts) #>,0
|
#define COMMA_VERSION <#= [string]::Join(',', $versionParts) #>,0
|
||||||
|
|
||||||
|
@ -22,12 +22,7 @@
|
|||||||
#include "sexy-iso-codes.h"
|
#include "sexy-iso-codes.h"
|
||||||
#include <libintl.h>
|
#include <libintl.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#ifdef G_OS_WIN32
|
|
||||||
#include "../../config-win32.h"
|
|
||||||
#else
|
|
||||||
#include "../../config.h"
|
#include "../../config.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
#define ISO_639_DOMAIN "iso_639"
|
#define ISO_639_DOMAIN "iso_639"
|
||||||
#define ISO_3166_DOMAIN "iso_3166"
|
#define ISO_3166_DOMAIN "iso_3166"
|
||||||
|
@ -31,12 +31,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
#ifdef WIN32
|
|
||||||
#include "../../config-win32.h"
|
|
||||||
#else
|
|
||||||
#include "../../config.h"
|
#include "../../config.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "../common/hexchat.h"
|
#include "../common/hexchat.h"
|
||||||
#include "../common/fe.h"
|
#include "../common/fe.h"
|
||||||
#include "../common/util.h"
|
#include "../common/util.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user