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());    

--
Click to find great rates on medical insurance, save big, shop here
http://tagline.hushmail.com/fc/CAaCXv1QS4Y6DT8MHCKHAeIYVeVRSGBs/




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

Reply via email to