Changeset 135 for cpp/common


Ignore:
Timestamp:
02/17/14 12:32:11 (11 years ago)
Author:
sz
Message:

neuron layout algorithm (for schematic drawing), usage example in frams/_demos/neuro_layout_test.cpp

Location:
cpp/common
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpp/common/nonstd.h

    r123 r135  
    5555  #define stricmp(a,b) strcasecmp(a,b)
    5656 #endif
    57 #ifdef INITIAL_DIR_IS_HOME
    58  #include "cwd.h"
    59  #define GET_APP_HOME getAppHome()
    60 #else
    61  #define GET_APP_HOME "./"
    62 #endif
    63 #ifdef INITIAL_DIR_IS_RES
    64  #include "cwd.h"
    65  #define GET_APP_RESOURCES getAppResources()
    66 #else
    67  #define GET_APP_RESOURCES "./"
    68 #endif
    6957#endif
    7058
     
    9684#endif
    9785
     86#ifdef LINUX
     87 #define GET_APP_HOME "./"
     88 #define GET_APP_RESOURCES "./"
     89#endif
     90
    9891#if defined(_WIN32) && !defined(SHP)
    9992    #define GET_APP_HOME ".\\"
     
    10194#endif
    10295
     96#ifdef INITIAL_DIR_IS_HOME
     97 #include "cwd.h"
     98 #ifdef GET_APP_HOME
     99  #undef GET_APP_HOME
     100 #endif
     101 #define GET_APP_HOME getAppHome()
     102#endif
    103103
    104 
     104#ifdef INITIAL_DIR_IS_RES
     105 #include "cwd.h"
     106 #ifdef GET_APP_RESOURCES
     107  #undef GET_APP_RESOURCES
     108 #endif
     109 #define GET_APP_RESOURCES getAppResources()
     110#endif
    105111
    106112//typedef unsigned char boolean; //niestety nie mozna uzyc 'bool' bo VC w rpcndr.h wlasnie tak definiuje booleana, jako unsigned char
  • cpp/common/nonstd_math.cpp

    r122 r135  
    1414
    1515
    16 #ifdef _WIN32 //http://stackoverflow.com/questions/2170385/c-math-functions
    17 double round(double val)
     16#if defined __BORLANDC__ || (_MSC_VER <= 1700)
     17double round(double val) //http://stackoverflow.com/questions/2170385/c-math-functions
    1818{   
    1919    return floor(val + 0.5);
  • cpp/common/nonstd_math.h

    r122 r135  
    1717#endif
    1818
    19 #ifdef _WIN32 //http://stackoverflow.com/questions/2170385/c-math-functions
    20 double round(double val);
     19#if defined __BORLANDC__ || (_MSC_VER <= 1700)
     20double round(double val);  //http://stackoverflow.com/questions/2170385/c-math-functions
    2121#endif
    2222
Note: See TracChangeset for help on using the changeset viewer.