Ticket #29375: patch-linewrap_fix.diff

File patch-linewrap_fix.diff, 1.5 KB (added by davidstuartbruce@…, 14 years ago)
  • src/linebreak/linebreak.c

    diff --git src/linebreak/linebreak.c src/linebreak/linebreak.c
    index f9c88a1..6b0bf66 100644
    along with this program. If not, see <http://www.gnu.org/licenses/>. */ 
    1818#include <config.h>
    1919
    2020/* Modification by David Bruce <davidstuartbruce@gmail.com>
    21  * to allow compilation under mingw-cross-env:
     21 * to allow compilation under mingw-cross-env and OS-X:
    2222 */
    2323
    24 #if defined BUILD_MINGW32 && !defined ICONV_CONST
     24#ifndef ICONV_CONST
    2525#define ICONV_CONST const
    2626#endif
    2727
  • src/t4k_common.h

    diff --git src/t4k_common.h src/t4k_common.h
    index d4676e7..ef8bbd6 100644
    MFStrategy; 
    239239#define MAX_LINES 128     //!< Maximum lines to wrap.
    240240#define MAX_LINEWIDTH 256 //!< Maximum characters of each line.
    241241
    242 char wrapped_lines[MAX_LINES][MAX_LINEWIDTH]; //!< Global buffer for wrapped lines.
     242static char wrapped_lines[MAX_LINES][MAX_LINEWIDTH]; //!< Global buffer for wrapped lines.
    243243
    244244//TODO separate headers for different areas a la SDL?
    245245
  • src/t4k_linewrap.c

    diff --git src/t4k_linewrap.c src/t4k_linewrap.c
    index 5f80ad1..cfa7308 100644
    along with this program. If not, see <http://www.gnu.org/licenses/>. */ 
    3232#include <stdio.h>
    3333
    3434static char wrapped_lines0[MAX_LINES][MAX_LINEWIDTH];  // for internal storage
    35 char wrapped_lines[MAX_LINES][MAX_LINEWIDTH]; // publicly available!
     35//char wrapped_lines[MAX_LINES][MAX_LINEWIDTH]; // publicly available!
    3636
    3737
    3838