Commit Graph

30 Commits

Author SHA1 Message Date
John Ralls
e7aa53a75e Remove gmtime_r and localtime_r from lib/libc. They're no longer used. 2015-07-25 12:50:17 -07:00
Geert Janssens
24cb06156f Provide strfmon function for platforms that don't have it 2014-09-21 22:33:01 +02:00
Geert Janssens
47778a8325 Remove unused guile references in various source files
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22642 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-12-12 17:43:18 +00:00
Christian Stimming
b53205e903 Set some more line-ending style properties.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18961 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-24 19:28:20 +00:00
Phil Longstaff
be4fce5ed5 If gmtime_r is defined as a macro, undef it
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18834 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-05 17:55:01 +00:00
Phil Longstaff
78d8fba84e Undefine localtime_r as a macro (new mingw pthreads package defines it)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18828 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-04 22:06:23 +00:00
Phil Longstaff
210472586c Add braces to make if-if-then-else structure clear and avoid GCC 4.4.0 error message
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18827 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-04 22:04:23 +00:00
Christian Stimming
04ffda604b Win32: Add more header includes where necessary to avoid using undeclared functions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18797 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-03 20:45:58 +00:00
Christian Stimming
ce99c42871 Re-indentation of source code, next batch.
This also strips trailing whitespaces from lines where they existed.
This re-indentation was done using astyle-1.24 using the following options:

astyle --indent=spaces=4 --brackets=break --pad-oper --pad-header --suffix=none

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18787 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-02 21:40:02 +00:00
Christian Stimming
49658f362a MSVC compatibility: Fix r18748, r18761 by replacing strncasecmp() with strnicmp().
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18773 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-01 18:44:49 +00:00
Christian Stimming
ce7f2889b9 Partly revert r18748, "Win32 compatibility": lib/libc directory doesn't have glib available.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18761 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-28 13:56:59 +00:00
Christian Stimming
f101adee5c Win32 compatibility: Use glib wrappers of non-usual POSIX functions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18748 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-27 18:39:15 +00:00
Phil Longstaff
dc394c0030 Add win32 version of gmtime_r.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18277 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-08-24 02:00:39 +00:00
Christian Stimming
60c32fd16b Bug #514043: Use AM_CPPFLAGS instead of AM_CFLAGS.
AM_CFLAGS is passed both to the compiler (.c -> .o) and to the linker, so it
should only have flags that are appropriate for both steps. AM_CPPFLAGS is
passed only to the compiler, so flags that are only appropriate for that step
(-I and -D flags, for example), should be in _CPPFLAGS instead of _CFLAGS.
Every gnucash-2.2.3 Makefile.am that passes -I flags gets it wrong, placing
them in _CFLAGS. It's not a functional bug (the linker ignores -I flags), but a
ton of superfluous flags makes the build output pretty verbose and hard to
debug when things do go wrong.

To make matters more confusing as a developer, the FOO_CFLAGS variable set by
PKG_CHECK_MODULES(FOO) is actually for _CPPFLAGS in the Makefile.am
('pkg-config --cflags' returns the -I flags).

A related -I bug (one that *is* functionally broken) is that sometimes a local
(build dir) -I flag is passed after a global (installed dependent library) one.
If my system happens to have a header installed from some unrelated thing,
compiler will find *that* one instead of the expected one in the source
directory. Should always pass all local -I before any global ones.

Patch by andi5 plus one manual addition in src/gnome-utils/Makefile.am

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17655 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-10-25 20:30:47 +00:00
Andreas Köhler
c402307aba Further improve date parsing on Windows. Revert parts of r16049 on Unix.
The recursive parsing of %x by strptime seems to work only for complete
strings, e.g. 4.6. in de_DE or 4/6 in en_UK will not be parsed
correctly.  Therefore, readd LANGINFO_D_FMT_CHECK and use
qof_win32_get_time_format(QOF_WIN32_PICTURE_{DATE,TIME,DATETIME} on
Windows for printing and scanning.  Make get_win32_locale_string and
translate_win32_picture accessible by QOF.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16073 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-12 16:50:49 +00:00
Andreas Köhler
e4b8923fb0 On strptime('%X') and Windows, first translate the time picture to a format spec, cf. #437751.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16071 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-11 20:21:18 +00:00
Andreas Köhler
b9664b2cab Add Windows-specific code to lib/libc/strptime.c to eat %x, %X and %c.
Originally, it came from evolution-data-server,
/libedataserver/e-time-utils.c, but was modified to not depend on GLib.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16048 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-05 20:44:24 +00:00
Andreas Köhler
c71c7ecd24 Add lib/libc/pow.h to avoid calculation errors on Windows.
If the return value of pow is not saved in a double but rather used for
other calculations or casts, results can be bad, like pow(10, 2) being
99 instead of 100. Wrap pow and store the return value first before
continuing.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15484 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-02-01 01:08:05 +00:00
David Hampton
4b04137e7d Never include "config.h" from a header file. Doing so makes it nigh
impossible to override configuration settings.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13549 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-09 05:51:07 +00:00
Christian Stimming
96dea8f6b7 Fix old libc substitution files, now needed for windows/mingw32
porting.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13524 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-07 22:00:44 +00:00
Chris Shoemaker
fc02baaa87 Add 'Makefile' as a dependency for targets that are generated
from scriptlets in Makefile.  That way, if the generating scriptlet is
changed, (or the Makefile is regenerated) the target will also be remade.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12350 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-14 03:56:53 +00:00
David Hampton
0b8a944f30 Update FSF street address.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@11964 57a11ea4-9604-0410-9ed3-97b8803252fd
2005-11-17 05:35:02 +00:00
Joshua Sled
5eded02d6c Removing .cvsignore files; mis-migrated po/ChangeLog
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@11785 57a11ea4-9604-0410-9ed3-97b8803252fd
2005-11-02 16:38:29 +00:00
David Hampton
f28d033d74 Collapse the gnome2 branch back into HEAD.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@11565 57a11ea4-9604-0410-9ed3-97b8803252fd
2005-11-02 03:32:36 +00:00
Derek Atkins
6b85475af0 2003-01-19 John Pierce <XXXXXXXXXXX>
* doc/Makefile.am
	* src/doc/Makefile.am
	* src/doc/design/Makefile.am
	* src/experimental/cgi-bin/Makefile.am
	  Added docs that were missing from dist.
	  Moved doxygen clean rules to maintainer-clean.
	  Moved texinfos to maintainer-clean.

	* lib/libc/Makefile.am
	  Added sources needed for OS X to dist.

	* src/app-utils/Makefile.am
	* src/backend/postgres/Makefile.am
	* src/business/business-core/Makefile.am
	* src/business/business-gnome/Makefile.am
	* src/business/dialog-tax-table/Makefile.am
	* src/core-utils/Makefile.am
	* src/engine/Makefile.am
	* src/gnc-module/Makefile.am
	* src/gnc-module/test/mod-bar/Makefile.am
	* src/gnc-module/test/mod-baz/Makefile.am
	* src/gnc-module/test/mod-foo/Makefile.am
	* src/gnome/Makefile.am
	* src/gnome-search/Makefile.am
	* src/import-export/Makefile.am
	* src/import-export/binary-import/Makefile.am
	* src/import-export/qif-io-core/Makefile.am
	* src/register/register-core/Makefile.am
	* src/report/report-gnome/Makefile.am
	* src/scm/Makefile.am
	* src/app-file/Makefile.am
	* src/gnome-utils/Makefile.am
	  Put generated headers into dist.
	  Moved symlinks to distclean.
	  Moved generated files to maintainer-clean.
	  Put generated gw-.*.scm files in dist for parity.
	  Put generated sources into dist.
	  Moved generated source to maintainer-clean.

	* src/bin/overrides/Makefile
	  Made built scripts depend on config.status to ensure
	  they're rebuilt when paths change.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7859 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-20 17:11:50 +00:00
Derek Atkins
1b7c48a98c * Fix the autoconf-2.13/2.52/2.53 problems -- Gnucash should now
work on all versions of auto-tools, although it now requires GnuMake.

	* configure.in -- just pass LIBOBJS directly to the Makefile; pass
	  a sed script that uses '$U' (which is a 2.53ism, but works right
	  on 2.13) to the Makefile.
	* lib/libc/Makefile.am -- Use LIBOBJS and GnuMake's $(shell) syntax
	  to create the list of libobjects to be linked into "libc-missing"


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7266 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-10-05 14:24:10 +00:00
David Hampton
59e52d8714 Mac OS X support, round 2.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6878 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-18 20:32:22 +00:00
Derek Atkins
cfd364a4e2 Fix for Solaris: you cannot have an empty .a, so supply a no-op .c
file so you at least have _something_.  This is a crock, but it
was easier than making the inclusion of libc-missing.a optional
everywhere.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6837 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-08 05:03:31 +00:00
David Hampton
da8b78111e Convert new 'missing' library to a libtool library.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6834 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-07 23:53:27 +00:00
David Hampton
3ce1d63e1a Pogma's initial Mac OS X patches.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6833 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-07 23:22:24 +00:00