1
0
mirror of https://github.com/rfivet/uemacs.git synced 2024-12-21 08:36:23 -05:00

Replace compilation check by estruct.h header inclusion.

This commit is contained in:
Renaud 2021-08-07 21:46:58 +08:00
parent 1fbb2fc565
commit 5c65613f03
4 changed files with 10 additions and 9 deletions

2
lock.c
View File

@ -1,6 +1,4 @@
/* lock.c -- implements lock.h */
#include "estruct.h"
#include "lock.h"
/* LOCK.C

8
lock.h
View File

@ -1,9 +1,9 @@
/* lock.h -- */
#ifndef _LOCK_H_
#define _LOCK_H_
#ifndef _ESTRUCT_H_
#error uEmacs compilation settings needs to be done!
#endif
#include "estruct.h"
#if BSD | SVR4
@ -14,3 +14,5 @@ int unlock( const char *fname) ;
#endif
#endif
/* end of lock.h */

View File

@ -1,5 +1,4 @@
/* pklock.c -- implements pklock.h */
#include "estruct.h"
#include "pklock.h"
/* PKLOCK.C

View File

@ -1,9 +1,9 @@
/* pklock.h -- */
#ifndef _PKLOCK_H_
#define _PKLOCK_H_
#ifndef _ESTRUCT_H_
#error uEmacs compilation settings needs to be done!
#endif
#include "estruct.h"
#if (FILOCK && BSD) || SVR4
@ -13,3 +13,5 @@ char *undolock( const char *fname) ;
#endif
#endif
/* end of pklock.h */