summaryrefslogtreecommitdiff
path: root/src/fl_open_uri.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2007-01-23 20:45:28 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2007-01-23 20:45:28 +0000
commit28b3753946478b11cd5cf04793c8b959fbda0f82 (patch)
tree865db89d27a333067c35066a5f5faab635c37db1 /src/fl_open_uri.cxx
parentc8f1e91448569e74cdccda11792ac4557185ed3f (diff)
Don't need path_find() on Mac OS X...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5636 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_open_uri.cxx')
-rw-r--r--src/fl_open_uri.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/fl_open_uri.cxx b/src/fl_open_uri.cxx
index ff87dff67..a22adca0d 100644
--- a/src/fl_open_uri.cxx
+++ b/src/fl_open_uri.cxx
@@ -50,8 +50,10 @@
// Local functions...
//
-#ifndef WIN32
+#if !defined(WIN32) && !defined(__APPLE__)
static char *path_find(const char *program, char *filename, int filesize);
+#endif // !WIN32 && !__APPLE__
+#ifndef WIN32
static int run_program(const char *program, char **argv, char *msg, int msglen);
#endif // !WIN32
@@ -228,7 +230,7 @@ fl_open_uri(const char *uri, char *msg, int msglen) {
}
-#ifndef WIN32
+#if !defined(WIN32) && !defined(__APPLE__)
// Find a program in the path...
static char *path_find(const char *program, char *filename, int filesize) {
const char *path; // Search path
@@ -260,8 +262,10 @@ static char *path_find(const char *program, char *filename, int filesize) {
return 0;
}
+#endif // !WIN32 && !__APPLE__
+#ifndef WIN32
// Run the specified program, returning 1 on success and 0 on failure
static int
run_program(const char *program, char **argv, char *msg, int msglen) {