Skip to content

Commit

Permalink
Merge pull request #121 from ev0rtex/update-includes
Browse files Browse the repository at this point in the history
Fix generated headers
  • Loading branch information
kisvegabor authored Sep 12, 2024
2 parents 899ea11 + 1f44ab4 commit 841f1ef
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions lib/writers/lvgl/lv_font.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,18 @@ class LvFont extends Font {
* Opts: ${this.opts.opts_string}
******************************************************************************/
#ifdef __has_include
#if __has_include("lvgl.h")
#ifndef LV_LVGL_H_INCLUDE_SIMPLE
#define LV_LVGL_H_INCLUDE_SIMPLE
#endif
#endif
#endif
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#include "lvgl.h"
#else
#include "${this.opts.lv_include || 'lvgl/lvgl.h'}"
#include "${this.opts.lv_include || 'lvgl/lvgl.h'}"
#endif
#ifndef ${guard_name}
Expand Down

0 comments on commit 841f1ef

Please sign in to comment.