--- port/cpl_vsi.h	2018-12-14 22:39:34.000000000 +0100
+++ port/cpl_vsi.h	2018-12-22 14:00:00.001000000 +0100
@@ -330,7 +330,7 @@
     /** NULL-terminated list of extra properties. */
     char**       papszExtra;
 
-#ifdef __cplusplus
+#if defined(__cplusplus) && !defined(CPL_SUPRESS_CPLUSPLUS)
 /*! @cond Doxygen_Suppress */
     VSIDIREntry();
     ~VSIDIREntry();