fixed source code for old compilers
This commit is contained in:
		| @ -189,10 +189,10 @@ static QSE_INLINE void qse_htl_setcopier (qse_htl_t* htl, qse_htl_copier_t _copi | |||||||
| #define qse_htl_getcomper(htl) ((htl)->comper) | #define qse_htl_getcomper(htl) ((htl)->comper) | ||||||
| #define qse_htl_getfreeer(htl) ((htl)->freeer) | #define qse_htl_getfreeer(htl) ((htl)->freeer) | ||||||
|  |  | ||||||
| #define qse_htl_sethasher(htl,_hahser) ((htl)->hasher = _hasher) | #define qse_htl_sethasher(htl,_hasher) ((htl)->hasher = (_hasher)) | ||||||
| #define qse_htl_setcomper(htl,_comper) ((htl)->comper = _comper) | #define qse_htl_setcomper(htl,_comper) ((htl)->comper = (_comper)) | ||||||
| #define qse_htl_setfreeer(htl,_freeer) ((htl)->freeer = _freeer) | #define qse_htl_setfreeer(htl,_freeer) ((htl)->freeer = (_freeer)) | ||||||
| #define qse_htl_setcopier(htl,_copier) ((htl)->copier = _copier) | #define qse_htl_setcopier(htl,_copier) ((htl)->copier = (_copier)) | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  | |||||||
| @ -92,16 +92,13 @@ static void t1 (void) | |||||||
| 			QSE_ASSERT (qse_log_gettarget (log, QSE_NULL) == (QSE_LOG_CONSOLE | QSE_LOG_FILE | QSE_LOG_SYSLOG_REMOTE)); | 			QSE_ASSERT (qse_log_gettarget (log, QSE_NULL) == (QSE_LOG_CONSOLE | QSE_LOG_FILE | QSE_LOG_SYSLOG_REMOTE)); | ||||||
| 		} | 		} | ||||||
|  |  | ||||||
| 		QSE_LOG4 (log, QSE_T("test"), QSE_LOG_DEBUG,  | 	#if defined(QSE_HAVE_INT128_T) | ||||||
| #if defined(QSE_HAVE_INT128_T) | 		QSE_LOG4 (log, QSE_T("test"), QSE_LOG_DEBUG, QSE_T("MSG %d %I128x %#0128I128b %l20d >>"), 10 * i , q, q, (long)45); | ||||||
| 			QSE_T("MSG %d %I128x %#0128I128b %l20d >>"),  | 	#elif defined(QSE_HAVE_INT64_T) | ||||||
| #elif defined(QSE_HAVE_INT64_T) | 		QSE_LOG4 (log, QSE_T("test"), QSE_LOG_DEBUG, QSE_T("MSG %d %I64x %#064I64b %l20d >>"), 10 * i , q, q, (long)45); | ||||||
| 			QSE_T("MSG %d %I64x %#064I64b %l20d >>"),  | 	#else | ||||||
| #else | 		QSE_LOG4 (log, QSE_T("test"), QSE_LOG_DEBUG, QSE_T("MSG %d %I32x %#032I32b %l20d >>"), 10 * i , q, q, (long)45); | ||||||
| 			QSE_T("MSG %d %I32x %#032I32b %l20d >>"),  | 	#endif | ||||||
| #endif |  | ||||||
| 			10 * i , q, q, (long)45 |  | ||||||
| 		); |  | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
|  |  | ||||||
|  | |||||||
| @ -28,7 +28,7 @@ static int stop_req = 0; | |||||||
| 	qse_mtx_unlock (mtx); \ | 	qse_mtx_unlock (mtx); \ | ||||||
| } while(0) | } while(0) | ||||||
|  |  | ||||||
| static int thr_exec (qse_thr_t* thr) | static int thr_exec (qse_thr_t* thr, void* ctx) | ||||||
| { | { | ||||||
| 	thr_xtn_t* xtn = qse_thr_getxtn(thr); | 	thr_xtn_t* xtn = qse_thr_getxtn(thr); | ||||||
|  |  | ||||||
|  | |||||||
| @ -20,7 +20,7 @@ struct thr_xtn_t | |||||||
| }; | }; | ||||||
| typedef struct thr_xtn_t thr_xtn_t; | typedef struct thr_xtn_t thr_xtn_t; | ||||||
|  |  | ||||||
| static int thr_func (qse_thr_t* thr) | static int thr_func (qse_thr_t* thr, void* ctx) | ||||||
| { | { | ||||||
| 	int i = 0; | 	int i = 0; | ||||||
| 	thr_xtn_t* xtn = qse_thr_getxtn(thr); | 	thr_xtn_t* xtn = qse_thr_getxtn(thr); | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user