From 28b3753946478b11cd5cf04793c8b959fbda0f82 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Tue, 23 Jan 2007 20:45:28 +0000 Subject: 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 --- src/fl_open_uri.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src') 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) { -- cgit v1.2.3