Bug 3340 - can't build with CFLAGS=-DC_ONLY
Status: RESOLVED WONTFIX
Alias: None
Product: ioquake3
Classification: Unclassified
Component: Misc
Version: unspecified
Hardware: PC All
: P3 minor
Assignee: Zachary J. Slater
QA Contact: ioquake3 bugzilla mailing list
URL:
Depends on:
Blocks:
 
Reported: 2007-08-31 13:01 EDT by Tony J. White
Modified: 2009-10-06 11:25:57 EDT
1 user (show)

See Also:


Attachments
svn1140 allow building with C_ONLY (2.11 KB, patch)
2007-08-31 13:04 EDT, Tony J. White
svn1140 allow building with C_ONLY (2.12 KB, patch)
2007-08-31 13:09 EDT, Tony J. White

Description Tony J. White 2007-08-31 13:01:06 EDT
C_ONLY is a define that limits the amount of asm optimizations used and building
a binary without those optimizations can be useful in troubleshooting.

Attached patch allows building with C_ONLY
Comment 1 Tony J. White 2007-08-31 13:04:58 EDT
Created attachment 1506 [details]
svn1140 allow building with C_ONLY

* adds a non asm Sys_SnapVector() to win_shared.c
* doesn't try to use FTOL_PTR when C_ONLY is set
* uses the crt provided _ftol() on MINGW like on MSC
Comment 2 Tony J. White 2007-08-31 13:09:31 EDT
Created attachment 1507 [details]
svn1140 allow building with C_ONLY

oops, don't assume win_shared.c is x86 only
Comment 3 Thilo Schulz 2009-10-06 11:25:57 EDT
Well, you do have commit rights yourself. If you are still interested in it, please apply the patch. I don't care ;)