Changeset 335 for libcaca/trunk/src/caca.c
- Timestamp:
- Jan 11, 2004, 2:45:57 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/src/caca.c
r331 r335 48 48 #if defined(USE_X11) 49 49 # include <X11/Xlib.h> 50 #endif 51 #if defined(USE_WIN32) 52 # include <windows.h> 50 53 #endif 51 54 … … 157 160 #endif 158 161 #if defined(USE_X11) 159 /* Nothing to do */ 162 if(_caca_driver == CACA_DRIVER_X11) 163 { 164 /* Nothing to do */ 165 } 166 else 167 #endif 168 #if defined(USE_WIN32) 169 if(_caca_driver == CACA_DRIVER_WIN32) 170 { 171 /* Nothing to do */ 172 printf("initialising win32 driver\n"); 173 } 174 else 160 175 #endif 161 176 { … … 374 389 else 375 390 #endif 391 #if defined(USE_WIN32) 392 if(_caca_driver == CACA_DRIVER_WIN32) 393 { 394 /* Nothing to do */ 395 } 396 else 397 #endif 376 398 { 377 399 /* Dummy */ … … 391 413 if(var && *var) 392 414 { 415 #if defined(USE_WIN32) 416 if(!strcasecmp(var, "win32")) 417 _caca_driver = CACA_DRIVER_WIN32; 418 else 419 #endif 393 420 #if defined(USE_CONIO) 394 421 if(!strcasecmp(var, "conio")) … … 417 444 #endif 418 445 446 #if defined(USE_WIN32) 447 _caca_driver = CACA_DRIVER_WIN32; 448 return; 449 #endif 419 450 #if defined(USE_CONIO) 420 451 _caca_driver = CACA_DRIVER_CONIO; … … 488 519 static void caca_init_terminal(void) 489 520 { 490 #if defined(HAVE_GETENV) && defined(HAVE_PUTENV) 521 #if defined(HAVE_GETENV) && defined(HAVE_PUTENV) && \ 522 (defined(USE_SLANG) || defined(USE_NCURSES)) 491 523 char *term, *colorterm, *other; 524 #endif 492 525 493 526 #if defined(USE_SLANG) … … 499 532 return; 500 533 534 #if defined(HAVE_GETENV) && defined(HAVE_PUTENV) && \ 535 (defined(USE_SLANG) || defined(USE_NCURSES)) 501 536 term = getenv("TERM"); 502 537 colorterm = getenv("COLORTERM");
Note: See TracChangeset
for help on using the changeset viewer.