Type: Intellisense
Describe the bug
- OS and Version: Ubuntu 19.04
- VS Code Version: 1.33.1
- C/C++ Extension Version: 0.22.1
- Other extensions you installed (and if the issue persists after disabling them): Python, PHP Intellisense, npm and ESLint which none of them should interfere with C
- A clear and concise description of what the bug is: Intellisense claims that
pthread_rwlock_t is undefined. Probably due to the header file having #if defined __USE_UNIX98 || defined __USE_XOPEN2K in front of the of the typedef. It compiles just fine so it's definitely defined.
To Reproduce
Steps to reproduce the behavior:
- Have the C/C++ intellisense enabled
- Init a rwlock with
pthread_rwlock_t lock = PTHREAD_RWLOCK_INITIALIZER;
- The editor claims that it is not defined even if it runs through gcc compilation without an error