Menu

#196 nsoracle: use of snprintf causes compile to fail on Win32

aolserver_v40
open
nobody
5
2004-07-26
2004-06-16
No

nsoracle.c contains snprintf(...) - This is shielded by an
#IFDEF WIN32. The compilaton fails at this line. To get
around this, I've made the following change:

348c348
< #ifdef WIN32
---
> #ifndef WIN32

That satistifes the compiler and the resulting DLL works
fine.

Discussion

  • Dossy Shiobara

    Dossy Shiobara - 2004-07-26
    • summary: snprintf function causes compile to fail on Win32 --> nsoracle: use of snprintf causes compile to fail on Win32
     
  • Jamie Rasmussen

    Jamie Rasmussen - 2004-07-27

    Logged In: YES
    user_id=522678

    nsoracle should be picking up the
    #define snprintf _snprintf
    that is conditionally defined for win32 in ns.h. The fix is
    not to change from #ifdef to #ifndef, since that would break
    things for other platforms, but to remove the definition of
    snprintf from nsoracle.c and nsoracle.h completely.

    Also the line ora_connection_t *connection =
    fbPtr->connection;; has an extra semi-colon that should be
    removed.

     

Log in to post a comment.