Browse Source

Require GCC 4.8 for DISTRHO_DEPRECATED

Signed-off-by: falkTX <falktx@falktx.com>
pull/309/head
falkTX 3 years ago
parent
commit
42531e182d
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
3 changed files with 7 additions and 4 deletions
  1. +1
    -1
      .github/workflows/example-plugins.yml
  2. +4
    -1
      dgl/Makefile
  3. +2
    -2
      distrho/src/DistrhoDefines.h

+ 1
- 1
.github/workflows/example-plugins.yml View File

@@ -83,7 +83,7 @@ jobs:
run: |
sudo dpkg --add-architecture i386
sudo apt-get update -qq
sudo apt-get install -yq g++-multilib libasound2-dev:i386 libgl1-mesa-dev:i386 liblo-dev:i386 libpulse-dev:i386
sudo apt-get install -yq g++-multilib libasound2-dev:i386 libcairo2-dev:i386 libgl1-mesa-dev:i386 liblo-dev:i386 libpulse-dev:i386
- name: Build linux x86
env:
CFLAGS: -m32


+ 4
- 1
dgl/Makefile View File

@@ -14,7 +14,10 @@ BUILD_CXX_FLAGS += -Isrc/pugl-upstream/include
LINK_FLAGS += $(DGL_LIBS)

# TODO fix these after pugl-upstream is done
BUILD_CXX_FLAGS += -Wno-attributes -Wno-extra -Wno-missing-field-initializers -Wno-narrowing
BUILD_CXX_FLAGS += -Wno-attributes -Wno-extra -Wno-missing-field-initializers
ifneq ($(MACOS),true)
BUILD_CXX_FLAGS += -Wno-narrowing
endif

# ifneq ($(MACOS_OLD),true)
# needed by sofd right now, fix later


+ 2
- 2
distrho/src/DistrhoDefines.h View File

@@ -72,7 +72,7 @@
#endif

/* Define DISTRHO_DEPRECATED */
#if defined(__GNUC__)
#if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 480
# define DISTRHO_DEPRECATED __attribute__((deprecated))
#elif defined(_MSC_VER)
# define DISTRHO_DEPRECATED [[deprecated]] /* Note: __declspec(deprecated) it not applicable to enum members */
@@ -83,7 +83,7 @@
/* Define DISTRHO_DEPRECATED_BY */
#if defined(__clang__) && defined(DISTRHO_PROPER_CPP11_SUPPORT)
# define DISTRHO_DEPRECATED_BY(other) __attribute__((deprecated("", other)))
#elif defined(__GNUC__)
#elif defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 480
# define DISTRHO_DEPRECATED_BY(other) __attribute__((deprecated("Use " other)))
#else
# define DISTRHO_DEPRECATED_BY(other) DISTRHO_DEPRECATED


Loading…
Cancel
Save