microsoftarchive / redis

Redis is an in-memory database that persists on disk. The data model is key-value, but many different kind of values are supported: Strings, Lists, Sets, Sorted Sets, Hashes

Home Page:http://redis.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hiredis: RtlGenRandom should be defined in Win32_APIs.c

saya1024 opened this issue · comments

I use hiredis in my code. It works well until I include "Win32_Interop/win32fixes.h" in different .cpp files.There is a link error: "Find one or more symbols with multiple definitions.". Finally I find a global variable “RtlGenRandom” in "src\Win32_Interop\Win32_APIs.h". It should be defined in "Win32_APIs.c" rather than in a head file.