#19 Win32 compile failure - fields.cpp

closed
None
5
2004-02-21
2001-05-11
Anonymous
No

Environment: MS VC++ 6.0 SP4 on WinNT 4.0 SP6a, xBase 1.2.0 (downloaded 11 May
2001)

In method GetFieldNo in fields.cpp, the following code fails to compile because
strcasecmp is unknown. I had commented out the HAVE_STRCASECMP directive
in xboptions.h.

#ifndef __WIN32__
if(!strcasecmp( SchemaPtr[i].FieldName, name ))
#else
if(!stricmp( SchemaPtr[i].FieldName, name ))
#endif

I believe what should be present is:

#ifdef HAVE_STRCASECMP
if(!strcasecmp( SchemaPtr[i].FieldName, name ))
#else
if(!stricmp( SchemaPtr[i].FieldName, name ))
#endif

Discussion

  • Gary Kunkel

    Gary Kunkel - 2003-09-29
    • assigned_to: nobody --> gkunkel
     
  • Gary Kunkel

    Gary Kunkel - 2004-02-21
    • status: open --> closed
     
  • Gary Kunkel

    Gary Kunkel - 2004-02-21

    Logged In: YES
    user_id=37575

    This has been resolved. This does compile in Borland 5.5
    and Visual C++.

     

Log in to post a comment.