This is Harbour .prg code.

If harbour is run (any version, I've now tried with 1.0.1 final BCC55),
it prints: 'DEF_A AND NOT DEF_B'

If I copy the exact same code to a .c file and
try with a C compiler, there is nothing printed (with MSVC cl -W3),
which seems correct.

Brgds,
Viktor

On 2008.10.27., at 19:33, Mindaugas Kavaliauskas wrote:

Szakáts Viktor wrote:
BTW, maybe you've missed it, but I've sent an e-mail
on strange #if behaviour. It's the same with MSVC:
---
#define DEF_A
#define DEF_B
#if defined( DEF_A ) && ! defined( DEF_B )
#error DEF_A AND NOT DEF_B
#endif

Hi,


this sound like MSVC preprocessor problem, see:

#if sizeof( MYSQL_ROW ) != sizeof( void* )
  #error "MySQLDD error: sizeof( MYSQL_ROW ) != sizeof( void* )"
#endif


I GUESS your case can be "fixed" by:

#if defined( DEF_A )
#if ! defined( DEF_B )
#error DEF_A AND NOT DEF_B
#endif
#endif


Best regards,
Mindaugas
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to