[quake3-bugzilla] [Bug 5140] New: Compilation of ioquake3.exe is not possible REv. 2106 with vc 2010 express

bugzilla-daemon at icculus.org bugzilla-daemon at icculus.org
Sat Jul 30 17:16:38 EDT 2011


https://bugzilla.icculus.org/show_bug.cgi?id=5140

           Summary: Compilation of ioquake3.exe is not possible REv. 2106
                    with vc 2010 express
           Product: ioquake3
           Version: SVN HEAD
          Platform: PC
        OS/Version: Windows Vista
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Platform
        AssignedTo: zakk at icculus.org
        ReportedBy: yimgame at gmail.com
         QAContact: quake3-bugzilla at icculus.org


Created attachment 2882
  --> https://bugzilla.icculus.org/attachment.cgi?id=2882
The file with the changes.

VC++ give this:
1>------ Build started: Project: quake3, Configuration: Release Win32 ------
1>  cl_curl.c
1>..\..\code\client\cl_curl.c(102): fatal error C1021: invalid preprocessor
command 'elsif'
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

And i make two changes

Line 102
#elsif by #if

Line 328
The compiller ask for a final i put
#endif

Now compile fine, but i dont know if this is correct for the code.

1>------ Build started: Project: quake3, Configuration: Release Win32 ------
1>  cl_curl.c
1>d:\ioquake_svn\code\client\cl_curl.c(97): warning C4706: assignment within
conditional expression
1>     Creating library ..\..\build\quake3_release\ioquake3.x86.lib and object
..\..\build\quake3_release\ioquake3.x86.exp
1>  quake3.vcxproj ->
D:\ioquake_svn\misc\msvc10\..\..\build\quake3_release\ioquake3.x86.exe
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

This is the patch.

Index: cl_curl.c
===================================================================
--- cl_curl.c    (revision 2106)
+++ cl_curl.c    (working copy)
@@ -99,7 +99,7 @@
 #ifdef _WIN32
         return qfalse;

-#elsif ALTERNATE_CURL_LIB
+#if ALTERNATE_CURL_LIB
         // On some linux distributions there is no libcurl.so.3, but only
libcurl.so.4. That one works too.
         if(!(cURLLib = Sys_LoadDll(ALTERNATE_CURL_LIB)))
             return qfalse;
@@ -325,3 +325,4 @@
     CL_NextDownload();
 }
 #endif /* USE_CURL */
+#endif
\ No newline at end of file



I send a mail to svnmaster at icculus.org before found bugzilla, sorry for that.

-- 
Configure bugmail: https://bugzilla.icculus.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the quake3-bugzilla mailing list