Skip to content

Commit

Permalink
fix MacOSX
Browse files Browse the repository at this point in the history
  • Loading branch information
stonewell committed Jan 5, 2013
1 parent 38723b1 commit e451288
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Lib7Zip/OSFunctions_UnixLike.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ using namespace NWindows;

#include "OSFunctions_UnixLike.h"

#ifdef __APPLE__
int myselect(struct dirent * pDir );
#else
int myselect(const struct dirent * pDir );
#endif //__APPLE__

static C7ZipObjectPtrArray * g_pHandlers = NULL;
static C7ZipLibrary * g_pLibrary = NULL;
Expand Down Expand Up @@ -63,7 +67,11 @@ bool LoadDllFromFolder(C7ZipDllHandler * pMainHandler, const wstring & wfolder_n
return true;
}

#ifdef __APPLE__
int myselect(struct dirent * pDir )
#else
int myselect(const struct dirent * pDir )
#endif //__APPLE__
{
if ( NULL == pDir )
return 0;
Expand Down
2 changes: 2 additions & 0 deletions autogen.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/sh
libtoolize --force --copy
#for macos
glibtoolize --force --copy
aclocal
automake -a
autoconf
Expand Down

0 comments on commit e451288

Please sign in to comment.