Skip to content

Commit

Permalink
remove usage of __ prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
slightlyeepy authored and adsr committed Jun 8, 2024
1 parent f150ad3 commit 1974ba8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ $(termbox_a): $(termbox_o)
$(AR) rcs $@ $(termbox_o)

$(termbox_ffi_h): $(termbox_h)
awk '/__ffi_start/{p=1} p==1 || /__TERMBOX_H/{print}' $^ | $(CC) -DTB_LIB_OPTS $(termbox_cflags) -P -E - >$@
awk '/__ffi_start/{p=1} p==1 || /TERMBOX_H_INCL/{print}' $^ | $(CC) -DTB_LIB_OPTS $(termbox_cflags) -P -E - >$@

$(termbox_ffi_macro): $(termbox_h)
awk '/__ffi_start/{p=1} p==1 || /__TERMBOX_H/{print}' $^ | $(CC) -DTB_LIB_OPTS $(termbox_cflags) -P -E -dM - >$@
awk '/__ffi_start/{p=1} p==1 || /TERMBOX_H_INCL/{print}' $^ | $(CC) -DTB_LIB_OPTS $(termbox_cflags) -P -E -dM - >$@

$(termbox_h_lib): $(termbox_h)
sed 's|0 // __tb_lib_opts|1 // __tb_lib_opts|' $(termbox_h) >$@
Expand Down
6 changes: 3 additions & 3 deletions termbox2.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/

#ifndef __TERMBOX_H
#define __TERMBOX_H
#ifndef TERMBOX_H_INCL
#define TERMBOX_H_INCL

#ifndef _XOPEN_SOURCE
#define _XOPEN_SOURCE
Expand Down Expand Up @@ -693,7 +693,7 @@ const char *tb_version(void);
}
#endif

#endif /* __TERMBOX_H */
#endif /* TERMBOX_H_INCL */

#ifdef TB_IMPL

Expand Down

0 comments on commit 1974ba8

Please sign in to comment.