From e0a7768442bb4e182705d5e00feddefae7115450 Mon Sep 17 00:00:00 2001 From: nihui Date: Sun, 25 Feb 2024 17:34:15 +0800 Subject: [PATCH] Update README.md --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 23ed65d..1eec806 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,12 @@ int main() } ``` +#### Best practice for using `ruapu.h` in multiple compilation units + +1. Create one `ruapu.c` for your project +2. `ruapu.c` is **ONLY** `#define RUAPU_IMPLEMENTATION` and `#include "ruapu.h"` +3. Other sources `#include "ruapu.h"` but **NO** `#define RUAPU_IMPLEMENTATION` + OS✅ Windows
✅ Linux
✅ macOS
✅ Android
✅ iOS
✅ FreeBSD
✅ NetBSD
✅ OpenBSD Compiler✅ GCC
✅ Clang
✅ MSVC
✅ MinGW