diff --git a/src/cacaball.c b/src/cacaball.c index b2f4fa3..7342665 100644 --- a/src/cacaball.c +++ b/src/cacaball.c @@ -13,13 +13,11 @@ #include "config.h" -#include -#include -#include -#include - -#ifndef M_PI -# define M_PI 3.14159265358979323846 +#if !defined(__KERNEL__) +# include +# ifndef M_PI +# define M_PI 3.14159265358979323846 +# endif #endif #include "cucul.h" diff --git a/src/cacamoir.c b/src/cacamoir.c index 6bfa264..3903d64 100644 --- a/src/cacamoir.c +++ b/src/cacamoir.c @@ -13,8 +13,10 @@ #include "config.h" -#include -#include +#if !defined(__KERNEL__) +# include +# include +#endif #include "cucul.h" #include "caca.h" diff --git a/src/cacaplas.c b/src/cacaplas.c index 02a552b..2277f62 100644 --- a/src/cacaplas.c +++ b/src/cacaplas.c @@ -14,10 +14,11 @@ #include "config.h" -#include - -#ifndef M_PI -# define M_PI 3.14159265358979323846 +#if !defined(__KERNEL__) +# include +# ifndef M_PI +# define M_PI 3.14159265358979323846 +# endif #endif #include "cucul.h"