I am trying to understand the NO_STDIO flag.  I would like
to build with it defined.  However, if I do that, bio.h
does not compile properly:

Looking at the following piece of code from bio.h,
If I define NO_STDIO, then NO_FP_API gets defined.
However, WIN16 and _WINDLL are not defined so I still
get the wrong half of the #if statement.

If I define NO_FP_API from the compiler's command line,
then I run into severl places that complain because 
NO_STDIO should have been defined.

Is anyone using the NO_STDIO flag?  I would like to rearrange
these defines, but hesitate to do that if someone has a
philosophy that works for these two flags.  Please enlighten me
if you can.

Thank you!

John Murray
[EMAIL PROTECTED]
801-397-5380
Bountiful, UT


#ifdef NO_STDIO
#define NO_FP_API
#endif


/* These two aren't currently implemented */
/* int BIO_get_ex_num(BIO *bio); */
/* void BIO_set_ex_free_func(BIO *bio,int idx,void (*cb)()); */
int BIO_set_ex_data(BIO *bio,int idx,char *data);
char *BIO_get_ex_data(BIO *bio,int idx);
int BIO_get_ex_new_index(long argl, char *argp, int (*new_func)(),
        int (*dup_func)(), void (*free_func)());

#  if defined(WIN16) && defined(_WINDLL)
BIO_METHOD *BIO_s_file_internal(void);
BIO *BIO_new_file_internal(char *filename, char *mode);
BIO *BIO_new_fp_internal(FILE *stream, int close_flag);
#    define BIO_s_file  BIO_s_file_internal
#    define BIO_new_file        BIO_new_file_internal
#    define BIO_new_fp  BIO_new_fp_internal
#  else /* FP_API */
BIO_METHOD *BIO_s_file(void );
BIO *BIO_new_file(char *filename, char *mode);
BIO *BIO_new_fp(FILE *stream, int close_flag);
#    define BIO_s_file_internal         BIO_s_file
#    define BIO_new_file_internal       BIO_new_file
#    define BIO_new_fp_internal         BIO_s_file
#  endif /* FP_API */
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to