Wireshark-dev: Re: [Wireshark-dev] Are we fully moved over to C++ compilers?

From: Pascal Quantin <pascal@xxxxxxxxxxxxx>
Date: Wed, 17 May 2023 23:56:46 +0200 (GMT+02:00)
Hi Gilbert,

17 mai 2023 23:41:21 Gilbert Ramirez <gram@xxxxxxxxxxxxxxx>:

> What's the state of our toolchain requirements for wireshark and all the programs within it?
> The CMakeLists.txt indicates we need C++ 11, but also has variables for C_ONLY_FLAGS
>
> Some .c/.h files have "#ifdef __cplusplus" and others don't.
>
> Basically, if I'm working on a new feature in common code for tshark and wireshark, can I rely on C++ and the STL, or must I restrain myself to C and glib?

You should stick to C (C++ being used for Qt code). Lately we allowed the use of stdint.h types if I'm not mistaken, but 99.9% of the code still uses glib types and functions.

Best regards,
Pascal.