#11246: flint-1.5.0.p5's extraneous #includes break typedef ulong in sys/types.h
------------------------+---------------------------------------------------
   Reporter:  dimpase   |          Owner:  tbd         
       Type:  defect    |         Status:  needs_review
   Priority:  major     |      Milestone:  sage-4.7.1  
  Component:  packages  |       Keywords:              
Work_issues:            |       Upstream:  N/A         
   Reviewer:            |         Author:              
     Merged:            |   Dependencies:              
------------------------+---------------------------------------------------

Comment(by wbhart):

 FLINT_ASSERT is defined in flint.h and flint_heap_alloc is defined in
 memory-manager.h.

 I think the given fix compiles only because the headers are picked up via
 other inclusions.

 A fix that seems to work for me is to guard the inclusion of system
 headers as follows:

 #undef ulong
 #include <stdlib.h>
 #define ulong unsigned long

 Note that the flint-1.6 release notes say:

 * Better Cygwin support

 though I don't know if this particular issue is fixed or not. It may be
 only be an issue with more recent Cygwin than what I tested with.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11246#comment:2>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to