mtmd: explicitly forbidden inclusion of private header and libcommon (#17946)

This commit is contained in:
Xuan-Son Nguyen 2025-12-12 15:16:06 +01:00 committed by GitHub
parent 12280ae905
commit 17158965ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 19 additions and 0 deletions

View file

@ -32,6 +32,10 @@
#define STB_IMAGE_IMPLEMENTATION
#include "stb/stb_image.h"
#ifdef MTMD_INTERNAL_HEADER
#error "mtmd-helper is a public library outside of mtmd. it must not include internal headers"
#endif
//
// internal logging functions
//