Browse Source

Include <stdio.h> in caca_conio.h to avoid errors when this header is

included after us.
tags/v0.99.beta17
Sam Hocevar sam 15 years ago
parent
commit
fde9caa727
2 changed files with 6 additions and 1 deletions
  1. +0
    -1
      caca/caca.h
  2. +6
    -0
      caca/caca_conio.h

+ 0
- 1
caca/caca.h View File

@@ -28,7 +28,6 @@

#if !defined(__KERNEL__)
# include <stdarg.h>
# include <stdio.h>
#endif

#undef __extern


+ 6
- 0
caca/caca_conio.h View File

@@ -19,6 +19,12 @@
#ifndef __CACA_CONIO_H__
#define __CACA_CONIO_H__

/* Since we're going to redefine standard functions, include these
* headers first to avoid errors upon later inclusion. */
#if !defined(__KERNEL__)
# include <stdio.h>
#endif

#include <caca.h>

#if !defined _DOXYGEN_SKIP_ME && !defined __LIBCACA__


Loading…
Cancel
Save