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
This commit is contained in:
Michael R Sweet
2007-01-23 20:45:28 +00:00
parent c8f1e91448
commit 28b3753946
+6 -2
View File
@@ -50,8 +50,10 @@
// Local functions... // Local functions...
// //
#ifndef WIN32 #if !defined(WIN32) && !defined(__APPLE__)
static char *path_find(const char *program, char *filename, int filesize); 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); static int run_program(const char *program, char **argv, char *msg, int msglen);
#endif // !WIN32 #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... // Find a program in the path...
static char *path_find(const char *program, char *filename, int filesize) { static char *path_find(const char *program, char *filename, int filesize) {
const char *path; // Search path const char *path; // Search path
@@ -260,8 +262,10 @@ static char *path_find(const char *program, char *filename, int filesize) {
return 0; return 0;
} }
#endif // !WIN32 && !__APPLE__
#ifndef WIN32
// Run the specified program, returning 1 on success and 0 on failure // Run the specified program, returning 1 on success and 0 on failure
static int static int
run_program(const char *program, char **argv, char *msg, int msglen) { run_program(const char *program, char **argv, char *msg, int msglen) {