Skip to content

Commit

Permalink
Include stdio.h from editline.h
Browse files Browse the repository at this point in the history
Fixes `#include <editline.h>` without first including `<stdio.h>`, which previously errored at the missing typedef for `FILE`.
  • Loading branch information
rcombs authored Feb 17, 2022
1 parent 36e0921 commit f7b58d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/editline.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
#ifndef EDITLINE_H_
#define EDITLINE_H_

#include <stdio.h>

/* Handy macros when binding keys. */
#define CTL(x) ((x) & 0x1F)
#define ISCTL(x) ((x) && (x) < ' ')
Expand Down

0 comments on commit f7b58d3

Please sign in to comment.