Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRolf Theunissen2018-03-11 10:06:08 +0000
committerAlexander Kurtakov2018-03-15 09:52:24 +0000
commit07296b07e60190da648c102f48a394453878cd9b (patch)
tree1c6089b3e5c9f4b8836496cc61e554c81ec07a98 /bundles/org.eclipse.swt/Eclipse SWT PI/gtk
parent85b8546ba92458a2cc0aaa2c274887f8bb0c6322 (diff)
downloadeclipse.platform.swt-07296b07e60190da648c102f48a394453878cd9b.tar.gz
eclipse.platform.swt-07296b07e60190da648c102f48a394453878cd9b.tar.xz
eclipse.platform.swt-07296b07e60190da648c102f48a394453878cd9b.zip
Bug 488431 - Provide SWT/GTK3 port on Windows
Map the realpath method to _fullpath in windows. This function provides the same functionality, only the windows variant will not return an error if the file does not exist. Change-Id: Iec3b4451bd73053ee91fe571fccefdd47be1c2d9 Signed-off-by: Rolf Theunissen <rolf.theunissen@altran.com>
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/gtk')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.h b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.h
index c8c1ca4541..7664c1ccc5 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.h
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.h
@@ -40,7 +40,7 @@
#include <gtk/gtkunixprint.h>
#else
#include <windows.h>
-#define NO_realpath // TODO [win32] use GetFullPathName instead;
+//#define NO_realpath // TODO [win32] use GetFullPathName instead;
#define NO_RTLD_1GLOBAL
#define NO_RTLD_1LAZY
#define NO_RTLD_1NOW
@@ -65,6 +65,9 @@
#define NO__1gtk_1print_1unix_1dialog_1set_1current_1page
#define NO__1gtk_1print_1unix_1dialog_1set_1embed_1page_1setup
#define NO__1gtk_1print_1unix_1dialog_1set_1manual_1capabilities
+
+// map realpath to a similar function in win32
+#define realpath(N,R) _fullpath((R),(N),_MAX_PATH)
#endif
#define OS_LOAD_FUNCTION LOAD_FUNCTION

Back to the top