Skip to content

Commit 37551d0

Browse files
committed
Fix #76 add explicit struct typedefs
1 parent 4c726f4 commit 37551d0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

inst/include/systemfonts.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@ struct FontFeature {
1313
char feature[4];
1414
int setting;
1515
};
16+
typedef struct FontFeature FontFeature;
1617
// A structure to pass around a single font with features (used by the C interface)
1718
struct FontSettings {
1819
char file[PATH_MAX + 1];
1920
unsigned int index;
2021
const FontFeature* features;
2122
int n_features;
2223
};
24+
typedef struct FontSettings FontSettings;
2325

2426
// Get the file and index of a font given by its name, along with italic and
2527
// bold status. Writes filepath to `path` and returns the index

0 commit comments

Comments
 (0)