• Alan Coopersmith's avatar
    c99_compat.h: Don't try to use 'restrict' in C++ code · 23801734
    Alan Coopersmith authored
    Fixes build failures on Solaris in C++ files using gcc:
    
    ../src/util/u_math.h:628:41: error: expected ‘,’ or ‘...’ before ‘dest’
      628 | util_memcpy_cpu_to_le32(void * restrict dest, const void * restrict src, size_t n)
          |                                         ^~~~
    ../src/util/u_math.h: In function ‘void* util_memcpy_cpu_to_le32(void*)’:
    ../src/util/u_math.h:641:18: error: ‘dest’ was not declared in this scope
      641 |    return memcpy(dest, src, n);
          |                  ^~~~
    ../src/util/u_math.h:641:24: error: ‘src’ was not declared in this scope
      641 |    return memcpy(dest, src, n);
          |                        ^~~
    ../src/util/u_math.h:641:29: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
      641 |    return memcpy(dest, src, n);
          |                             ^
          |                             yn
    Signed-off-by: Alan Coopersmith's avatarAlan Coopersmith <alan.coopersmith@oracle.com>
    Acked-by: Eric Engestrom's avatarEric Engestrom <eric.engestrom@intel.com>
    (cherry picked from commit ddde652e)
    23801734
Name
Last commit
Last update
..
CL Loading commit data...
D3D9 Loading commit data...
EGL Loading commit data...
GL Loading commit data...
GLES Loading commit data...
GLES2 Loading commit data...
GLES3 Loading commit data...
HaikuGL Loading commit data...
KHR Loading commit data...
c11 Loading commit data...
d3dadapter Loading commit data...
drm-uapi Loading commit data...
pci_ids Loading commit data...
vulkan Loading commit data...
c11_compat.h Loading commit data...
c99_alloca.h Loading commit data...
c99_compat.h Loading commit data...
c99_math.h Loading commit data...
meson.build Loading commit data...
no_extern_c.h Loading commit data...