Как получить ошибку используя 3 заголовка?

3 заголовка:

  1. core.h
#pragma once

#include "some.h"
#include "other.h"
  1. some.h
#pragma once

#include "core.h"

typedef int some_type;

#define some_call __stdcall

other_type other_call some_func();
  1. 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 файл).


Я специально упростил мою ситуацию до самого минимума.


Ответы (0 шт):