Skip to content

Commit

Permalink
Fix UNIX compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
orudge committed May 15, 2008
1 parent d40e90f commit d741f76
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions unix.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
#if defined(UNIX)

#include <allegro.h>
#include <pwd.h>
#include <sys/stat.h>
#include "blocks3.h"

static int init_path = 0;
Expand Down Expand Up @@ -99,10 +101,8 @@ const char *get_resource_file_path (const char * str1, const char * str2, const
*/
const char *find_resource_file (int dir, const char *file)
{
HINSTANCE SHFolder;
SHGETFOLDERPATH SHGetFolderPath;
char *home;
static char ans[MAX_PATH];
char exe[MAX_PATH];

if (!init_path)
{
Expand Down Expand Up @@ -172,8 +172,6 @@ const char *find_resource_file (int dir, const char *file)
default:
return NULL;
}

return fix_filename_slashes (ans);
}

#endif

0 comments on commit d741f76

Please sign in to comment.