diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-08-28 11:20:24 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-08-28 11:20:24 +0000 |
commit | 84157efa5ac4ee391e8615db69b07027428e331d (patch) | |
tree | 08118149c7d5e3cf022159765da3f0848da52164 /get_path.c | |
parent | 2e2c64dd3adb225800b5bc42cff75cfca67071be (diff) | |
download | mpv-84157efa5ac4ee391e8615db69b07027428e331d.tar.bz2 mpv-84157efa5ac4ee391e8615db69b07027428e331d.tar.xz |
Clean up the way get_path is handled: Compile get_path.c to an object to link
against instead of directly #including the C file and replace the many extern
declarations by a proper header file.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24262 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'get_path.c')
-rw-r--r-- | get_path.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/get_path.c b/get_path.c index f40580f1f9..952979bbe7 100644 --- a/get_path.c +++ b/get_path.c @@ -8,14 +8,17 @@ * by the caller. * */ + +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include "mp_msg.h" + #ifdef MACOSX_BUNDLE #include <CoreFoundation/CoreFoundation.h> #include <sys/types.h> #include <sys/stat.h> -#include <stdio.h> -#include <stdlib.h> #include <unistd.h> -#include <string.h> #endif char *get_path(const char *filename){ |