Ignore:
Timestamp:
Mar 6, 2008, 3:18:30 PM (11 years ago)
Author:
Sam Hocevar
Message:
  • Get rid of WATCOMC tests.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/view.cpp

    r88 r90  
    181181char cur_user_name[20]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
    182182
    183 #ifdef __WATCOMC__
    184183char const *get_login()
    185 {  if (cur_user_name[0]) return cur_user_name; else return "DOS user"; }
    186 
    187 #include <dos.h>
    188 #elif defined( __APPLE__ )
    189 
    190 char const *get_login()
    191 {  if (cur_user_name[0]) return cur_user_name; else return "Mac user"; }
    192 
    193 #else
    194 char const *get_login()
    195 {  if (cur_user_name[0]) return cur_user_name; else return (getlogin() ? getlogin() : "unknown"); }
    196 
    197 #endif
     184{
     185    if(cur_user_name[0])
     186        return cur_user_name;
     187    else
     188        return(getlogin() ? getlogin() : "unknown");
     189}
    198190
    199191void set_login(char const *name)
Note: See TracChangeset for help on using the changeset viewer.