Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
G
geany
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
geany
Commits
e5471fb5
Kaydet (Commit)
e5471fb5
authored
Tem 12, 2015
tarafından
Enrico Tröger
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Include win32defines.h before win32.h to fix build errors
üst
f11a2eb0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
40 additions
and
37 deletions
+40
-37
socket.c
src/socket.c
+2
-1
spawn.c
src/spawn.c
+2
-1
win32.c
src/win32.c
+4
-4
win32defines.h
src/win32defines.h
+32
-31
No files found.
src/socket.c
Dosyayı görüntüle @
e5471fb5
...
...
@@ -57,6 +57,8 @@
#ifdef HAVE_SOCKET
#include "win32defines.h"
/* should always come before any system headers */
#include "socket.h"
#include "app.h"
...
...
@@ -79,7 +81,6 @@
# include <netinet/in.h>
# include <glib/gstdio.h>
#else
# include "win32defines.h"
# include <winsock2.h>
# include <windows.h>
# include <gdk/gdkwin32.h>
...
...
src/spawn.c
Dosyayı görüntüle @
e5471fb5
...
...
@@ -43,13 +43,14 @@
# include "config.h"
#endif
#include "win32defines.h"
/* should always come before any system headers */
#include <errno.h>
#include <string.h>
#include "spawn.h"
#ifdef G_OS_WIN32
# include "win32defines.h"
# include <ctype.h>
/* isspace() */
# include <fcntl.h>
/* _O_RDONLY, _O_WRONLY */
# include <io.h>
/* _open_osfhandle, _close */
...
...
src/win32.c
Dosyayı görüntüle @
e5471fb5
...
...
@@ -27,12 +27,12 @@
# include "config.h"
#endif
#include "win32defines.h"
/* should always come before any system headers */
#include "win32.h"
#ifdef G_OS_WIN32
#include "win32defines.h"
#include "dialogs.h"
#include "document.h"
#include "editor.h"
...
...
@@ -982,14 +982,14 @@ gchar *win32_get_shortcut_target(const gchar *file_name)
gchar
*
path
=
NULL
;
wchar_t
*
wfilename
=
g_utf8_to_utf16
(
file_name
,
-
1
,
NULL
,
NULL
,
NULL
);
HWND
hWnd
=
NULL
;
if
(
main_widgets
.
window
!=
NULL
)
{
GdkWindow
*
window
=
gtk_widget_get_window
(
main_widgets
.
window
);
if
(
window
!=
NULL
)
hWnd
=
GDK_WINDOW_HWND
(
window
);
}
resolve_link
(
hWnd
,
wfilename
,
&
path
);
g_free
(
wfilename
);
...
...
src/win32defines.h
Dosyayı görüntüle @
e5471fb5
/*
* win32defines.h - this file is part of Geany, a fast and lightweight IDE
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef WIN32DEFINES_H
#define WIN32DEFINES_H 1
/* These defines are necessary defines *before* windows.h is included */
#define VC_EXTRALEAN
#define WIN32_LEAN_AND_MEAN
/* Need Windows XP for SHGetFolderPathAndSubDirW */
#define WINVER 0x0501
/* Needed for SHGFP_TYPE */
#define _WIN32_IE 0x0500
#endif
/* WIN32DEFINES_H */
/*
* win32defines.h - this file is part of Geany, a fast and lightweight IDE
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef WIN32DEFINES_H
#define WIN32DEFINES_H 1
/* These defines are necessary defines *before* windows.h is included */
#define VC_EXTRALEAN
#define WIN32_LEAN_AND_MEAN
/* Need Windows XP for SHGetFolderPathAndSubDirW */
#define WINVER 0x0501
#define _WIN32_WINNT 0x0501
/* Needed for SHGFP_TYPE */
#define _WIN32_IE 0x0500
#endif
/* WIN32DEFINES_H */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment