> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
> Sent: Tuesday, May 29, 2007 8:57 PM
> To: Development list
> Subject: Re: [Warzone-dev] [bug #9237] errors on MSVC compile
> svn r1408[patch]
>
> On Tue, 29 May 2007 18:46:23 -0400 Jose Ivey
> <NO-REPLY.INVALID- [EMAIL PROTECTED]> wrote:
> >URL:
> >  <http://gna.org/bugs/?9237>
> >
> >                 Summary: errors on MSVC compile svn r1408
> >                 Project: Warzone Resurrection Project
> >            Submitted by: urbanvoyeur
> >            Submitted on: Tuesday 05/29/2007 at 22:46
> >                Category: Build system
> >                Severity: 3 - Normal
> >                Priority: 5 - Normal
> >                  Status: None
> >             Assigned to: None
> >        Originator Email:
> >             Open/Closed: Open
> >         Discussion Lock: Any
> >                 Release: svn
> >        Operating System: Microsoft Windows
> >
> >    _______________________________________________________
> >
> >Details:
> >
> >
> >
> >1>strres.c
> >1>h:\document\programming\wz2100\wz_svn_trunk\lib\framework\strres.
> >c(391) :
> >error C2275: 'PHYSFS_file' : illegal use of this type as an
> expression
> >1>        h:\document\programming\wz2100\devpkg-
> >msvc\include\physfs.h(274) :
> >see declaration of 'PHYSFS_file'
> >1>h:\document\programming\wz2100\wz_svn_trunk\lib\framework\strres.
> >c(391) :
> >error C2065: 'fileHandle' : undeclared identifier
> >
> >
> >
> >
> >    _______________________________________________________
> >
> >Reply to this item at:
> >
> >  <http://gna.org/bugs/?9237>
> >
> Index: strres.c
> ===================================================================
> --- strres.c  (revision 1410)
> +++ strres.c  (working copy)
> @@ -37,6 +37,8 @@
>  #include "strres.h"
>  #include "strresly.h"
>
> +
> +
>  /* The string resource currently being loaded */
>  STR_RES      *psCurrRes;
>
> @@ -387,8 +389,9 @@
>  /* Load a string resource file */
>  BOOL strresLoad(STR_RES* psRes, const char* fileName)  {
> +     PHYSFS_file *fileHandle = PHYSFS_openRead(fileName);
>       psCurrRes = psRes;
> -     PHYSFS_file* fileHandle = PHYSFS_openRead(fileName);
> +
>       if (!fileHandle)
>       {
>               debug(LOG_ERROR, "strresLoadFile:
> PHYSFS_openRead(\"%s\") failed
> with error: %s\n", fileName, PHYSFS_getLastError());
>
> --

It works. Thanks!



_______________________________________________
Warzone-dev mailing list
Warzone-dev@gna.org
https://mail.gna.org/listinfo/warzone-dev

Reply via email to