naett.c

Tiny cross-platform HTTP / HTTPS client library in C.
git clone git://git.finwo.net/lib/naett.c
Log | Files | Refs | README | LICENSE

commit c3679e5d42aefc1b19c039174480fffd63439de3
parent 93b36d5f1282733b462106bd3cf1097fa00a322d
Author: Erik Agsjö <erik.agsjo@gmail.com>
Date:   Mon, 31 Jul 2023 15:46:43 +0200

Another attempt at min

Diffstat:
Msrc/naett_internal.h | 7+++----
1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/naett_internal.h b/src/naett_internal.h @@ -12,11 +12,10 @@ #define NOMINMAX #include <windows.h> #include <winhttp.h> -#define __WINDOWS__ 1 +#ifndef min + #define min(x,y) ((x) < (y) ? (x) : (y)) #endif - -#ifdef _MSC_VER - #define min(a,b) (((a) < (b)) ? (a) : (b)) +#define __WINDOWS__ 1 #endif #if __linux__ && !__ANDROID__