[an error occurred while processing this directive]
|
а проблему можно обойти и так еще:
файл def.h:
#ifndef __DEF_H__
#define __DEF_H__#ifdef DEF_INIT
#define DEF_DECLARE
#else
#define DEF_DECLARE extern
#endifDEF_DECLARE u8_t var;
#endif
файл file1.c:
#define DEF_INIT
#include "def.h"
.....
файл file2.c:
#include "def.h"
.....
E-mail: info@telesys.ru