2626/* PORT SPECIFIC C INFORMATION RELEASE */
2727/* */
2828/* tx_port.h Linux/GNU */
29- /* 6.1.11 */
29+ /* 6.x */
3030/* */
3131/* AUTHOR */
3232/* */
5454/* 04-25-2022 William E. Lamie Modified comment(s), removed */
5555/* useless definition, */
5656/* resulting in version 6.1.11 */
57+ /* xx-xx-xxxx Yanwu Cai Modified comment(s), fixed */
58+ /* compile warnings, */
59+ /* resulting in version 6.x */
5760/* */
5861/**************************************************************************/
5962
@@ -130,7 +133,7 @@ typedef char CHAR;
130133typedef unsigned char UCHAR ;
131134typedef int INT ;
132135typedef unsigned int UINT ;
133- #if __x86_64__
136+ #if defined( __x86_64__ ) && __x86_64__
134137typedef int LONG ;
135138typedef unsigned int ULONG ;
136139#else /* __x86_64__ */
@@ -144,7 +147,7 @@ typedef uint64_t ULONG64;
144147
145148/* Override the alignment type to use 64-bit alignment and storage for pointers. */
146149
147- #if __x86_64__
150+ #if defined( __x86_64__ ) && __x86_64__
148151#define ALIGN_TYPE_DEFINED
149152typedef unsigned long long ALIGN_TYPE ;
150153
@@ -461,7 +464,7 @@ void _tx_thread_delete_port_completion(struct TX_THREAD_STRUCT *thread_ptr, UINT
461464void _tx_thread_reset_port_completion (struct TX_THREAD_STRUCT * thread_ptr , UINT tx_saved_posture );
462465#define TX_THREAD_RESET_PORT_COMPLETION (thread_ptr ) _tx_thread_reset_port_completion(thread_ptr, tx_saved_posture);
463466
464- #if __x86_64__
467+ #if defined( __x86_64__ ) && __x86_64__
465468/* Define the ThreadX object deletion extensions for the remaining objects. */
466469
467470#define TX_BLOCK_POOL_DELETE_EXTENSION (pool_ptr )
@@ -563,7 +566,7 @@ extern __thread int _tx_linux_threadx_thread;
563566/* Define functions for linux thread. */
564567void _tx_linux_thread_suspend (pthread_t thread_id );
565568void _tx_linux_thread_resume (pthread_t thread_id );
566- void _tx_linux_thread_init ();
569+ void _tx_linux_thread_init (void );
567570
568571#ifndef TX_LINUX_MEMORY_SIZE
569572#define TX_LINUX_MEMORY_SIZE 64000
0 commit comments