[vlc-commits] include: do not define max_align_t in C++
Rémi Denis-Courmont
git at videolan.org
Tue Sep 20 12:03:25 CEST 2016
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Sep 20 12:59:05 2016 +0300| [995515b8a057391f1b6aa88b5a6a7cd872c5702f] | committer: Rémi Denis-Courmont
include: do not define max_align_t in C++
Since C++11 is now assumed, we know the type exists in C++. It is only
necessary in C99.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=995515b8a057391f1b6aa88b5a6a7cd872c5702f
---
include/vlc_fixups.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/vlc_fixups.h b/include/vlc_fixups.h
index 851e1ef..4490f0c 100644
--- a/include/vlc_fixups.h
+++ b/include/vlc_fixups.h
@@ -108,7 +108,7 @@ extern "C" {
#endif
/* stddef.h */
-#ifndef HAVE_MAX_ALIGN_T
+#if !defined (__cplusplus) && !defined (HAVE_MAX_ALIGN_T)
typedef struct {
long long ll;
long double ld;
More information about the vlc-commits
mailing list