Changeset 9408


Ignore:
Timestamp:
2005-03-14T11:19:36+13:00 (19 years ago)
Author:
davidb
Message:

Subtle mistake related to testing for C-preprocessor defined
GSDL_USE_IOS_H. oaimain.cpp used #if statement that checked for this
without ensuring gsdlconf.h had been loaded first. The result of this was
that it *wasn't* defined early on in oaimain.cpp when the decision over
whether to include <sstream> or <strstream.h> (chooses <sstream>). Later
on, after including fileutils.h which (eventually) included gsdlconf.h, it
becomes defined causing a compile error because the later code now expects
<strstream.h> to have been included.

Problem fixed by #including gsdlconf.h at start of file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/oaiservr/oaimain.cpp

    r8330 r9408  
    2525 *
    2626 *********************************************************************/
     27
     28#include "gsdlconf.h"
    2729
    2830#if defined(GSDL_USE_IOS_H)
     
    9597}
    9698
     99
    97100int main(int argc, char *argv[])
    98101{
Note: See TracChangeset for help on using the changeset viewer.