mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Drop useless ifdefs
The parameter it checks is always defined these days
This commit is contained in:
@@ -36,12 +36,10 @@ extern "C"
|
||||
#include <time.h>
|
||||
#include <errno.h>
|
||||
|
||||
#ifdef PROJECT_VERSION_MAJOR
|
||||
#ifndef HAVE_STRPTIME
|
||||
#include "strptime.h"
|
||||
#endif
|
||||
#include <gnc-date.h>
|
||||
#endif
|
||||
}
|
||||
|
||||
#include "sixtp.h"
|
||||
|
||||
@@ -55,9 +55,7 @@ up to you to pass a suitable entity.
|
||||
#define GNC_ADDRESS_H_
|
||||
|
||||
#include "qof.h"
|
||||
#ifdef PROJECT_VERSION_MAJOR
|
||||
#include "gncBusiness.h"
|
||||
#endif
|
||||
|
||||
#define GNC_ADDRESS_MODULE_NAME "gncAddress"
|
||||
#define GNC_ID_ADDRESS GNC_ADDRESS_MODULE_NAME
|
||||
|
||||
@@ -35,9 +35,8 @@ typedef struct _gncBillTerm GncBillTerm;
|
||||
typedef struct _gncBillTermClass GncBillTermClass;
|
||||
|
||||
#include "qof.h"
|
||||
#ifdef PROJECT_VERSION_MAJOR
|
||||
#include "gncBusiness.h"
|
||||
#endif
|
||||
|
||||
#define GNC_ID_BILLTERM "gncBillTerm"
|
||||
|
||||
/* --- type macros --- */
|
||||
|
||||
@@ -37,9 +37,7 @@
|
||||
#include "gncAddressP.h"
|
||||
#include "gncBillTermP.h"
|
||||
#include "gncInvoice.h"
|
||||
#ifdef PROJECT_VERSION_MAJOR
|
||||
#include "gncBusiness.h"
|
||||
#endif
|
||||
|
||||
#include "gncCustomer.h"
|
||||
#include "gncCustomerP.h"
|
||||
|
||||
@@ -49,9 +49,7 @@ typedef enum
|
||||
|
||||
typedef GList AccountValueList;
|
||||
|
||||
#ifdef PROJECT_VERSION_MAJOR
|
||||
#include "gncBusiness.h"
|
||||
#endif
|
||||
#include "gncInvoice.h"
|
||||
#include "gncOrder.h"
|
||||
#include "gncTaxTable.h"
|
||||
|
||||
@@ -576,11 +576,7 @@ gboolean gncJobRegister (void)
|
||||
{ JOB_ACTIVE, QOF_TYPE_BOOLEAN, (QofAccessFunc)gncJobGetActive, (QofSetterFunc)gncJobSetActive },
|
||||
{ JOB_REFERENCE, QOF_TYPE_STRING, (QofAccessFunc)gncJobGetReference, (QofSetterFunc)gncJobSetReference },
|
||||
{ JOB_RATE, QOF_TYPE_NUMERIC, (QofAccessFunc)gncJobGetRate, (QofSetterFunc)gncJobSetRate },
|
||||
#ifdef PROJECT_VERSION_MAJOR
|
||||
{ JOB_OWNER, GNC_ID_OWNER, (QofAccessFunc)gncJobGetOwner, NULL },
|
||||
#else
|
||||
{ JOB_OWNER, QOF_TYPE_CHOICE, (QofAccessFunc)qofJobGetOwner, (QofSetterFunc)qofJobSetOwner },
|
||||
#endif
|
||||
{ QOF_PARAM_ACTIVE, QOF_TYPE_BOOLEAN, (QofAccessFunc)gncJobGetActive, NULL },
|
||||
{ QOF_PARAM_BOOK, QOF_ID_BOOK, (QofAccessFunc)qof_instance_get_book, NULL },
|
||||
{ QOF_PARAM_GUID, QOF_TYPE_GUID, (QofAccessFunc)qof_instance_get_guid, NULL },
|
||||
@@ -597,10 +593,8 @@ gboolean gncJobRegister (void)
|
||||
}
|
||||
|
||||
qof_class_register (_GNC_MOD_NAME, (QofSortFunc)gncJobCompare, params);
|
||||
#ifdef PROJECT_VERSION_MAJOR
|
||||
qofJobGetOwner(NULL);
|
||||
qofJobSetOwner(NULL, NULL);
|
||||
#endif
|
||||
return qof_object_register (&gncJobDesc);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user