Fix inline is_auto_layout

This commit is contained in:
Drew DeVault 2017-01-01 12:36:47 -05:00
parent 15745abf0c
commit c01b898398
2 changed files with 6 additions and 3 deletions

View File

@ -75,7 +75,6 @@ void swayc_log(log_importance_t verbosity, swayc_t *cont, const char* format, ..
*/
enum swayc_layouts default_layout(swayc_t *output);
inline bool is_auto_layout(enum swayc_layouts layout) {
return (layout >= L_AUTO_FIRST) && (layout <= L_AUTO_LAST);
}
bool is_auto_layout(enum swayc_layouts layout);
#endif

View File

@ -1487,3 +1487,7 @@ enum swayc_layouts default_layout(swayc_t *output) {
return L_VERT;
}
}
bool is_auto_layout(enum swayc_layouts layout) {
return (layout >= L_AUTO_FIRST) && (layout <= L_AUTO_LAST);
}