]> git.sesse.net Git - vlc/blobdiff - include/vlc/vlc.h
Use native C/C++ boolean type
[vlc] / include / vlc / vlc.h
index d8e00dcd9e3b4a78478704b10d5e96d01feac040..53e5e18933c57f67651f0176342c7fa9c9f045bd 100644 (file)
 
 # ifdef __cplusplus
 extern "C" {
+# else
+#  include <stdbool.h>
 # endif
 
 /*****************************************************************************
  * Our custom types
  *****************************************************************************/
-typedef int vlc_bool_t;
+typedef bool vlc_bool_t;
 typedef struct vlc_list_t vlc_list_t;
 typedef struct vlc_object_t vlc_object_t;
 
@@ -131,8 +133,8 @@ struct vlc_list_t
 /*****************************************************************************
  * Booleans
  *****************************************************************************/
-#define VLC_FALSE 0
-#define VLC_TRUE  1
+#define VLC_FALSE false
+#define VLC_TRUE  true
 
 /*****************************************************************************
  * Playlist