summaryrefslogtreecommitdiffstats
path: root/byterun/unix.c
diff options
context:
space:
mode:
authorAlain Frisch <alain@frisch.fr>2013-06-18 10:25:01 +0000
committerAlain Frisch <alain@frisch.fr>2013-06-18 10:25:01 +0000
commit58e99bd087a837288e96f6f5d797cc0852669690 (patch)
treef4840cae591db71c9294caf914a8d38066c2fe86 /byterun/unix.c
parentf59df29db43b6befe1a9f8248691c55f369402cf (diff)
#4719: use GetModuleFileName to get an absolute path to the current executable under Windows.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13799 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'byterun/unix.c')
-rw-r--r--byterun/unix.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/byterun/unix.c b/byterun/unix.c
index 3fee9a396..491b1e78f 100644
--- a/byterun/unix.c
+++ b/byterun/unix.c
@@ -321,4 +321,11 @@ int caml_executable_name(char * name, int name_len)
return 0;
}
+#else
+
+int caml_executable_name(char * name, int name_len)
+{
+ return -1;
+}
+
#endif