[mythtv] configure and "restrict"

Nigel Pearson nigel at ind.tansu.com.au
Wed Oct 29 22:07:06 UTC 2008

> any specific reason why there are C specific flags in the g++ command?

OK, it looks like that was just me being stupid
(i.e. changing gcc to g++ without changing the flags)

> I would guess that gcc still supports __restrict__ with -std=c99 and
> will support that for a long time. I would move it to the begin of the
> restrict_keyword list.

That was the easiest fix, but it makes a change to block
of FFmpeg supplied code that will make merging harder.

I was thinking of:

% svn diff configure
Index: configure
--- configure   (revision 18932)
+++ configure   (working copy)
@@ -1768,6 +1768,7 @@
          strip="strip -d"
+        _restrict=__restrict__
          enable  appleremote
          enable  backend
          enable  darwin
@@ -2669,12 +2670,14 @@

+if test x"$_restrict" = x""; then
  for restrict_keyword in restrict __restrict__ __restrict; do
      check_cc <<EOF && _restrict=$restrict_keyword && break
  void foo(char * $restrict_keyword p);

Nigel Pearson, nigel at ind.tansu.com.au|
Telstra Net. Eng., Sydney, Australia |
Office: 9202 3900    Fax:  9212 6348 |
Mobile: 0408 664435  Home: 9792 6998 |

More information about the mythtv-dev mailing list