grantila / q

A platform-independent promise library for C++, implementing asynchronous continuations.
http://libq.io
Apache License 2.0
193 stars 24 forks source link

Doesn't compile using mingw64 on Windows #30

Open Voltra opened 5 years ago

Voltra commented 5 years ago

Hi, I recently tried to use this library for a small project but got a compile error for q/pp.hp on line 126 stating :

error: '__FUNCSIG__' was not declared in this scope
 # define LIBQ_FUNCTION __FUNCSIG__

After some digging, it seems that it detects that I'm compiling on Windows but uses __FUNCSIG__ which is part of Visual C++ even though I'm compiling using mingw64's toolchain.

On gcc (and therefore g++) and clang, there is __PRETTY_FUNCTION__ that would serve a similar purpose.

guypystin commented 3 years ago

you solve this? I have this problem

Voltra commented 2 years ago

Sadly no, I'd have to dive into how to parse __PRETTY_FUNCTION__ and add that to the lib