Skip to content

Commit

Permalink
bug(#57): Fix missing libedit include on Linux
Browse files Browse the repository at this point in the history
This change fixes a build failure on Linux due to trying to include a
non-existant `editline/history.h` file.

This include most probably only works when using the GNU readline library.
  • Loading branch information
fabianishere committed Sep 19, 2017
1 parent f192bb8 commit 1833d5e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.6)
project(brainfuck C)
set(brainfuck_VERSION_MAJOR 2)
set(brainfuck_VERSION_MINOR 7)
set(brainfuck_VERSION_PATCH 1)
set(brainfuck_VERSION_PATCH 2)

option(ENABLE_DEBUG "Enable the debug extension for brainfuck.")
option(BUILD_SHARED_LIB "Build a shared library.")
Expand Down
2 changes: 1 addition & 1 deletion include/brainfuck.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#define BRAINFUCK_VERSION_MAJOR 2
#define BRAINFUCK_VERSION_MINOR 7
#define BRAINFUCK_VERSION_PATCH 1
#define BRAINFUCK_VERSION_PATCH 2
#define BRAINFUCK_TAPE_SIZE 30000
/* 1: EOF leaves cell unchanged; 0: EOF == 0; 1: EOF == 1 */
#define BRAINFUCK_EOF_BEHAVIOR 1
Expand Down
3 changes: 0 additions & 3 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@

#ifdef BRAINFUCK_EDITLINE_LIB
#include <editline/readline.h>
#ifndef __APPLE__
#include <editline/history.h>
#endif
#endif

#if defined(WIN32) || defined(_WIN32) || defined(__WIN32) && !defined(__CYGWIN__)
Expand Down

0 comments on commit 1833d5e

Please sign in to comment.