diff options
Diffstat (limited to 'os-plugins/plugins/vmchooser/src/fltk-2/include/fltk/compat/FL/filename.H')
-rw-r--r-- | os-plugins/plugins/vmchooser/src/fltk-2/include/fltk/compat/FL/filename.H | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/os-plugins/plugins/vmchooser/src/fltk-2/include/fltk/compat/FL/filename.H b/os-plugins/plugins/vmchooser/src/fltk-2/include/fltk/compat/FL/filename.H new file mode 100644 index 00000000..08dcd86b --- /dev/null +++ b/os-plugins/plugins/vmchooser/src/fltk-2/include/fltk/compat/FL/filename.H @@ -0,0 +1,21 @@ +#ifndef fl_filename_H +#define fl_filename_H + +#include <fltk/filename.h> +#include <string.h> + +#define fl_filename_name fltk::filename_name +#define fl_filename_ext fltk::filename_ext +#define fl_filename_match fltk::filename_match +#define fl_filename_isdir fltk::filename_isdir +#define fl_filename_list fltk::filename_list + +inline char *fl_filename_setext(char * name, const char *ext) { + strcpy(fltk::filename_ext(name), ext ? ext : ""); + return name; +} +#define FL_PATH_MAX PATH_MAX // all buffers are assummed to be at least this long +FL_API bool fl_filename_expand(char *, const char *from); +FL_API bool fl_filename_absolute(char *, const char *from, const char* pwd=0); + +#endif |