]> git.sesse.net Git - vlc/commitdiff
include: remove restrict keyword (fixes #12354)
authorRémi Denis-Courmont <remi@remlab.net>
Tue, 7 Oct 2014 20:16:11 +0000 (23:16 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Tue, 7 Oct 2014 20:16:11 +0000 (23:16 +0300)
This is necessary for compatibility with C++. The keyword is only
meaningful in definition, not in declaration anyway.

include/vlc_es.h
include/vlc_probe.h
include/vlc_tls.h

index 5790d2343b22322d1f5e4965697dbc3d5a0e378c..8db588494350b40b0f9225df00234f44189c5072 100644 (file)
@@ -285,7 +285,8 @@ VLC_API void video_format_ScaleCropAr( video_format_t *, const video_format_t *
  * This function "normalizes" the formats orientation, by switching the a/r according to the orientation,
  * producing a format whose orientation is ORIENT_NORMAL. It makes a shallow copy (pallette is not alloc'ed).
  */
-VLC_API void video_format_ApplyRotation(video_format_t *restrict out, const video_format_t *restrict in);
+VLC_API void video_format_ApplyRotation(video_format_t * /*restrict*/ out,
+                                        const video_format_t *in);
 
 /**
  * This function applies the transform operation to fmt.
index 99315047a9cd115b6249998adca05d39ac95fd7b..efa4d972dfaca4c0db9ae0e7fc21bba279f40d4f 100644 (file)
@@ -32,7 +32,7 @@
 extern "C" {
 # endif
 
-void *vlc_probe (vlc_object_t *, const char *, size_t *restrict);
+void *vlc_probe (vlc_object_t *, const char *, size_t *);
 #define vlc_probe(obj, cap, pcount) \
         vlc_probe(VLC_OBJECT(obj), cap, pcount)
 
index 5bfd4186fbf53ec2023d984f48d3ded3dc8f5081..8b55ee833d760b803f2dfd560158d2a1f2451c12 100644 (file)
@@ -48,7 +48,7 @@ VLC_API vlc_tls_t *vlc_tls_ClientSessionCreate (vlc_tls_creds_t *, int fd,
 vlc_tls_t *vlc_tls_SessionCreate (vlc_tls_creds_t *, int fd, const char *host,
                                   const char *const *alpn);
 int vlc_tls_SessionHandshake (vlc_tls_t *, const char *host, const char *serv,
-                              char **restrict alp);
+                              char ** /*restrict*/ alp);
 VLC_API void vlc_tls_SessionDelete (vlc_tls_t *);
 
 /* NOTE: It is assumed that a->sock.p_sys = a */
@@ -68,7 +68,7 @@ struct vlc_tls_creds
     int (*open) (vlc_tls_creds_t *, vlc_tls_t *, int fd, const char *host,
                  const char *const *alpn);
     int  (*handshake) (vlc_tls_t *, const char *host, const char *service,
-                       char **restrict alp);
+                       char ** /*restrict*/ alp);
     void (*close) (vlc_tls_t *);
 };