Ignore:
Timestamp:
Nov 12, 2006, 4:26:13 PM (13 years ago)
Author:
Sam Hocevar
Message:
  • Got rid of HAVE_ERRNO_H ifdefs by defining seterrno()/geterrno() functions.
  • More debugging information in the import/export and font functions.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/graphics.c

    r1231 r1362  
    1919#include "common.h"
    2020
    21 #if !defined(__KERNEL__)
    22 #   if defined(HAVE_ERRNO_H)
    23 #       include <errno.h>
    24 #   endif
    25 #endif
    26 
    2721#include "caca.h"
    2822#include "caca_internals.h"
     
    4640    int ret = dp->drv.set_display_title(dp, title);
    4741
    48 #if defined(HAVE_ERRNO_H)
    4942    if(ret)
    50         errno = ENOSYS;
    51 #endif
     43        seterrno(ENOSYS);
    5244
    5345    return ret;
     
    196188    if(!dp->drv.set_mouse)
    197189    {
    198 #if defined(HAVE_ERRNO_H)
    199         errno = ENOSYS;
    200 #endif
     190        seterrno(ENOSYS);
    201191        return -1;
    202192    }
Note: See TracChangeset for help on using the changeset viewer.