use #error when missing define

This makes it easier to figure out what's going wrong when
we forget to define _POSIX_SOURCE.
This commit is contained in:
Ori Bernstein 2020-05-01 13:29:08 -07:00
parent eb73718c25
commit d935bb25d2

View file

@ -1,7 +1,7 @@
#ifndef __UNISTD_H
#define __UNISTD_H
#ifndef _POSIX_SOURCE
This header file is not defined in pure ANSI
#error This header file is not defined in pure ANSI
#endif
#pragma lib "/$M/lib/ape/libap.a"