Skip to content

Commit 4eda6b3

Browse files
committed
Fix #387
1 parent 87716e5 commit 4eda6b3

File tree

1 file changed

+20
-40
lines changed

1 file changed

+20
-40
lines changed

README.md

Lines changed: 20 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ A C++11 single-file header-only cross platform HTTP/HTTPS library.
99

1010
It's extremely easy to setup. Just include **httplib.h** file in your code!
1111

12+
For Windows users: Please read [this note](https://github.com/yhirose/cpp-httplib#windows).
13+
1214
Server Example
1315
--------------
1416

@@ -514,8 +516,25 @@ httplib.h httplib.cc
514516
NOTE
515517
----
516518

519+
### g++
520+
517521
g++ 4.8 and below cannot build this library since `<regex>` in the versions are [broken](https://stackoverflow.com/questions/12530406/is-gcc-4-8-or-earlier-buggy-about-regular-expressions).
518522

523+
### Windows
524+
525+
Include `httplib.h` before `Windows.h` or include `Windows.h` by defining `WIN32_LEAN_AND_MEAN` beforehand.
526+
527+
```cpp
528+
#include <httplib.h>
529+
#include <Windows.h>
530+
```
531+
532+
```cpp
533+
#define WIN32_LEAN_AND_MEAN
534+
#include <Windows.h>
535+
#include <httplib.h>
536+
```
537+
519538
License
520539
-------
521540

@@ -524,43 +543,4 @@ MIT license (© 2020 Yuji Hirose)
524543
Special Thanks To
525544
-----------------
526545

527-
The following folks made great contributions to polish this library to totally another level from a simple toy!
528-
529-
* [Zefz](https://github.com/Zefz)
530-
* [PixlRainbow](https://github.com/PixlRainbow)
531-
* [sgraham](https://github.com/sgraham)
532-
* [mrexodia](https://github.com/mrexodia)
533-
* [hyperxor](https://github.com/hyperxor)
534-
* [omaralvarez](https://github.com/omaralvarez)
535-
* [vvanelslande](https://github.com/vvanelslande)
536-
* [underscorediscovery](https://github.com/underscorediscovery)
537-
* [sux2mfgj](https://github.com/sux2mfgj)
538-
* [matvore](https://github.com/matvore)
539-
* [intmain-io](https://github.com/intmain)
540-
* [davidgfnet](https://github.com/davidgfnet)
541-
* [crtxcr](https://github.com/crtxcr)
542-
* [const-volatile](https://github.com/const)
543-
* [aguadoenzo](https://github.com/aguadoenzo)
544-
* [TheMaverickProgrammer](https://github.com/TheMaverickProgrammer)
545-
* [vdudouyt](https://github.com/vdudouyt)
546-
* [stupedama](https://github.com/stupedama)
547-
* [rockwotj](https://github.com/rockwotj)
548-
* [marknelson](https://github.com/marknelson)
549-
* [jaspervandeven](https://github.com/jaspervandeven)
550-
* [hans-erickson](https://github.com/hans)
551-
* [ha11owed](https://github.com/ha11owed)
552-
* [gulrak](https://github.com/gulrak)
553-
* [dolphineye](https://github.com/dolphineye)
554-
* [danielzehe](https://github.com/danielzehe)
555-
* [batist73](https://github.com/batist73)
556-
* [barryam3](https://github.com/barryam3)
557-
* [adikabintang](https://github.com/adikabintang)
558-
* [aaronalbers](https://github.com/aaronalbers)
559-
* [Whitetigerswt](https://github.com/Whitetigerswt)
560-
* [TangHuaiZhe](https://github.com/TangHuaiZhe)
561-
* [Sil3ntStorm](https://github.com/Sil3ntStorm)
562-
* [MannyClicks](https://github.com/MannyClicks)
563-
* [DraTeots](https://github.com/DraTeots)
564-
* [BastienDurel](https://github.com/BastienDurel)
565-
* [vitalyster](https://github.com/vitalyster)
566-
* [trollixx](https://github.com/trollixx)
546+
[These folks](https://github.com/yhirose/cpp-httplib/graphs/contributors) made great contributions to polish this library to totally another level from a simple toy!

0 commit comments

Comments
 (0)