diff options
author | Stephen Fisher <steve@stephen-fisher.com> | 2008-04-07 05:22:54 +0000 |
---|---|---|
committer | Stephen Fisher <steve@stephen-fisher.com> | 2008-04-07 05:22:54 +0000 |
commit | 726a1caaf1c717a5784beb2fb5a05900552563f0 (patch) | |
tree | 3f861f04f60e8872bcf7f82f56de654af93a7590 /epan/wslua/wslua.h | |
parent | 545d54ae745aa147ffa2e883dd0b982b56f86761 (diff) |
- Remove GLIB1 code
- Change ugly GLIB version checking statements to GLIB_CHECK_VERSION
- Remove ws_strsplit files because we no longer need to borrow GLIB2's
g_strsplit code for the no longer supported GLIB1 builds
svn path=/trunk/; revision=24829
Diffstat (limited to 'epan/wslua/wslua.h')
-rw-r--r-- | epan/wslua/wslua.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/epan/wslua/wslua.h b/epan/wslua/wslua.h index 2fdd138249..a036b30b2c 100644 --- a/epan/wslua/wslua.h +++ b/epan/wslua/wslua.h @@ -53,9 +53,6 @@ #include <epan/funnel.h> #include <epan/tvbparse.h> #include <epan/epan.h> -#if GLIB_MAJOR_VERSION < 2 -#include <dirent.h> -#endif #include "declare_wslua.h" @@ -161,28 +158,17 @@ struct _wslua_tap { int init_ref; }; -#if GLIB_MAJOR_VERSION < 2 -# define DIRECTORY_T DIR -# define FILE_T struct dirent -# define OPENDIR_OP(name) opendir(name) -# define DIRGETNEXT_OP(dir) readdir(dir) -# define GETFNAME_OP(file) (gchar *)file->d_name -# define CLOSEDIR_OP(dir) closedir(dir) -#else /* GLIB 2 */ # define DIRECTORY_T GDir # define FILE_T gchar # define OPENDIR_OP(name) g_dir_open(name, 0, dir->dummy) # define DIRGETNEXT_OP(dir) g_dir_read_name(dir) # define GETFNAME_OP(file) (file); # define CLOSEDIR_OP(dir) g_dir_close(dir) -#endif struct _wslua_dir { DIRECTORY_T* dir; char* ext; -#if GLIB_MAJOR_VERSION >= 2 GError** dummy; -#endif }; |