Added some more Mac OS X compatibility stuff:

- use optimization level -O3, which is supported by both gcc and clang
- removed a set of unnecessary parenthesis
- added info about 'brew' on Mac OS X to INSTALL file

bumped version number to 2.13.3
This commit is contained in:
Erik Auerswald
2013-01-11 10:26:57 +00:00
parent 350a8f6b57
commit 5a4e0ef5e0
4 changed files with 5 additions and 3 deletions
+2
View File
@@ -23,6 +23,8 @@ Prerequisites
-------------
- Imlib2 shared library and development headers. On a Debian or Ubuntu system
they are provided by the packages libimlib2 and libimlib2-dev.
On Mac OS X you can use 'brew' to install Imlib2: brew install imlib2
(see http://mxcl.github.com/homebrew/)
- Build tools, e.g. build-essential on a Debian (or Ubuntu) system.
- To build a .deb package, you probably need the debhelper package.
- To create an HTML version of the man page, you need rman.
+1 -1
View File
@@ -1,4 +1,4 @@
CFLAGS := -D_FORTIFY_SOURCE=2 -Wall -W -Wextra -pedantic -Werror -pedantic-errors $(shell imlib2-config --cflags) -O6
CFLAGS := -D_FORTIFY_SOURCE=2 -Wall -W -Wextra -pedantic -Werror -pedantic-errors $(shell imlib2-config --cflags) -O3
LDLIBS := $(shell imlib2-config --libs)
PREFIX := /usr/local
BINDIR := $(PREFIX)/bin
+1 -1
View File
@@ -20,7 +20,7 @@
#define SSOCR2_DEFINES_H
/* version number */
#define VERSION "2.13.2"
#define VERSION "2.13.3"
/* states */
#define FIND_DARK 0
+1 -1
View File
@@ -1004,7 +1004,7 @@ int main(int argc, char **argv)
int middle=0, quarter=0, three_quarters=0; /* scanlines */
int d_height=0; /* height of digit */
/* if digits[d].digit == D_ONE do nothing */
if((digits[d].digit == D_UNKNOWN)) {
if(digits[d].digit == D_UNKNOWN) {
int third=1; /* in which third we are */
int half;
found_pixels=0; /* how many pixels are already found */