Project

General

Profile

Bug #824

st.h requires stdlib.h

Added by felipec (Felipe Contreras) over 11 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
ruby -v:
Backport:
[ruby-core:20339]

Description

=begin
st.h is using size_t which is defined in stdlib.h.

Compilation fails when using st.h directly. That happens in libxml-ruby for example.
=end

#1

Updated by felipec (Felipe Contreras) over 11 years ago

=begin
Another option is to use stddef.h.
=end

#2

Updated by cfis (Charlie Savage) over 11 years ago

=begin
Hi Felipe,

An aside, but libxml-ruby shouldn't be using st.h anymore (it did for a release but I took it out). Will check the header files to make sure.

FYI - the code that I did have in failed on 64bit machines, most likely because of this incorrect typecase. I can dig up the code if needed, its in the svn repository for libxml-ruby.
=end

#3

Updated by ko1 (Koichi Sasada) over 11 years ago

  • Assignee set to nobu (Nobuyoshi Nakada)

=begin

=end

#4

Updated by nobu (Nobuyoshi Nakada) over 11 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
Applied in changeset r20622.
=end

Also available in: Atom PDF