Skip to content

Commit 279e267

Browse files
committed
Revert change to only happen in CI
1 parent da6062e commit 279e267

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

.github/workflows/ci-c-warnings.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ jobs:
6363
- name: Use enums for AVIF_TRUE/AVIF_FALSE
6464
if: ${{ matrix.case == 2}}
6565
run: |
66-
sed -i 's/#define AVIF_TRUE 1/enum avifTrueFalse_{ AVIF_TRUE 1,/' include/avif/avif.h
67-
sed -i 's/#define AVIF_FALSE 0/AVIF_FALSE 0};/' include/avif/avif.h
66+
sed -i 's/#define AVIF_TRUE 1/enum avifTrueFalse_{ AVIF_TRUE = 1,/' include/avif/avif.h
67+
sed -i 's/#define AVIF_FALSE 0/AVIF_FALSE = 0};/' include/avif/avif.h
6868
6969
- name: Prepare libavif (cmake)
7070
run: >

include/avif/avif.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,8 @@ extern "C" {
8585
((AVIF_VERSION_MAJOR * 1000000) + (AVIF_VERSION_MINOR * 10000) + (AVIF_VERSION_PATCH * 100) + AVIF_VERSION_DEVEL)
8686

8787
typedef int avifBool;
88-
enum avifTrueFalse_
89-
{
90-
AVIF_FALSE = 0,
91-
AVIF_TRUE = 1
92-
};
88+
#define AVIF_TRUE 1
89+
#define AVIF_FALSE 0
9390

9491
#define AVIF_DIAGNOSTICS_ERROR_BUFFER_SIZE 256
9592

0 commit comments

Comments
 (0)