Как получить ошибку используя 3 заголовка?
3 заголовка:
core.h
#pragma once
#include "some.h"
#include "other.h"
some.h
#pragma once
#include "core.h"
typedef int some_type;
#define some_call __stdcall
other_type other_call some_func();
other.h
#pragma once
#include "core.h"
typedef float other_type;
#define other_call __cdecl
some_type some_call other_func();
Внутри файла some.h получаем ошибку, что не определены some_type и some_call. Как избавиться от этой ошибки (желательно без объединения файлов some.h и other.h в 1 файл).
Я специально упростил мою ситуацию до самого минимума.