Skip to content

Commit

Permalink
Yet another attempt to patch to compile.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Mar 12, 2008
1 parent 5c5e3d7 commit 1b042d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions physfs_internal.h
Expand Up @@ -34,10 +34,10 @@ extern "C" {
#endif

#ifdef __GNUC__
#define PHYSFS_MINIMUM_GCC_VER(major, minor) \
#define PHYSFS_MINIMUM_GCC_VERSION(major, minor) \
( ((__GNUC__ << 16) + __GNUC_MINOR__) >= (((major) << 16) + (minor)) )
#else
#define PHYSFS_MINIMUM_GCC_VER(major, minor) (0)
#define PHYSFS_MINIMUM_GCC_VERSION(major, minor) (0)
#endif

/*
Expand Down
2 changes: 1 addition & 1 deletion platform/windows.c
Expand Up @@ -256,7 +256,7 @@ static HANDLE WINAPI fallbackCreateFileW(LPCWSTR fname,
} /* fallbackCreateFileW */


#if PHYSFS_MINIMUM_GCC_VERSION(3,3)
#if (PHYSFS_MINIMUM_GCC_VERSION(3,3))
typedef FARPROC __attribute__((__may_alias__)) PHYSFS_FARPROC;
#else
typedef FARPROC PHYSFS_FARPROC;
Expand Down

0 comments on commit 1b042d1

Please sign in to comment.