Ignore:
Timestamp:
Mar 24, 2009 6:26:09 PM (11 years ago)
Author:
pbelotti
Message:

trying again compatibility with MSVC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Couenne/src/readnl/readnl.cpp

    r79 r80  
    2222#include "opcode.hd"
    2323
    24 #if defined(_MSC_VER)
    25 typedef void * fcn_ptr;
    26 #else
    27 typedef long int fcn_ptr;
    28 #endif
    29 
    3024#define OBJ_DE    ((const ASL_fg *) asl) -> I.obj_de_
    3125#define VAR_E     ((const ASL_fg *) asl) -> I.var_e_
     
    3731// check if an expression is a null pointer or equals zero
    3832inline bool is_expr_zero (expr* e)
    39   {return ((e==NULL) || (((((fcn_ptr) e->op) == OPNUM) &&
     33{return ((e==NULL) || ((((Intcast (e->op)) == OPNUM) &&
    4034                          (fabs (((expr_n *)e) -> v)  < COUENNE_EPS)
    4135                          //  && (fabs (e -> dL) < COUENNE_EPS)
Note: See TracChangeset for help on using the changeset viewer.