diff --git a/ucore/src/mandelbrot.c b/ucore/src/mandelbrot.c index 4dfe35a..2e6dedb 100644 --- a/ucore/src/mandelbrot.c +++ b/ucore/src/mandelbrot.c @@ -2,6 +2,8 @@ #include #include +#if defined(__mips__) || defined(__x86_64__) + #define WIDTH 800 #define HEIGHT 600 @@ -113,3 +115,12 @@ int main(void) { } return 0; } + +#else + +int main(void) { + cprintf("This program can only run on platforms with floating point support.\n"); + return 0; +} + +#endif \ No newline at end of file