Skip to content

Commit

Permalink
Trying to fix the compilation issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
alanminko committed Aug 1, 2024
1 parent c62bfec commit 9f864eb
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/aig/aig/aigUtil.c
Original file line number Diff line number Diff line change
Expand Up @@ -1169,8 +1169,13 @@ void Aig_ManRandomTest1()
***********************************************************************/
unsigned Aig_ManRandom( int fReset )
{
#ifdef _MSC_VER
static unsigned int m_z = NUMBER1;
static unsigned int m_w = NUMBER2;
#else
static __thread unsigned int m_z = NUMBER1;
static __thread unsigned int m_w = NUMBER2;
#endif
if ( fReset )
{
m_z = NUMBER1;
Expand Down
5 changes: 5 additions & 0 deletions src/aig/gia/giaUtil.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,13 @@ ABC_NAMESPACE_IMPL_START
***********************************************************************/
unsigned Gia_ManRandom( int fReset )
{
#ifdef _MSC_VER
static unsigned int m_z = NUMBER1;
static unsigned int m_w = NUMBER2;
#else
static __thread unsigned int m_z = NUMBER1;
static __thread unsigned int m_w = NUMBER2;
#endif
if ( fReset )
{
m_z = NUMBER1;
Expand Down
5 changes: 5 additions & 0 deletions src/misc/util/utilSort.c
Original file line number Diff line number Diff line change
Expand Up @@ -1003,8 +1003,13 @@ void Abc_QuickSortTest()

unsigned Abc_Random( int fReset )
{
#ifdef _MSC_VER
static unsigned int m_z = NUMBER1;
static unsigned int m_w = NUMBER2;
#else
static __thread unsigned int m_z = NUMBER1;
static __thread unsigned int m_w = NUMBER2;
#endif
if ( fReset )
{
m_z = NUMBER1;
Expand Down

0 comments on commit 9f864eb

Please sign in to comment.