Changeset f310c1 in git


Ignore:
Timestamp:
Jun 15, 2022, 8:03:20 PM (23 months ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
0535f5211e00903aa6b27b280d8034b03a819d5c
Parents:
cf8a274644e002595e7268b7b81efcc5c87cc4bf
Message:
fixes for __APPLE__
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/combinatorics/hilb.cc

    rcf8a274 rf310c1  
    17141714}
    17151715
     1716#ifdef __APPLE__
     1717static int compare_rp(void *arg,const void *pp1, const void *pp2)
     1718#else
    17161719static int compare_rp(const void *pp1, const void *pp2, void* arg)
     1720#endif
    17171721{
    17181722  poly p1=*(poly*)pp1;
     
    18621866  idSkipZeroes(AA);
    18631867   /* sort */
    1864   if (IDELEMS(AA)>1) qsort_r(AA->m,IDELEMS(AA),sizeof(poly),compare_rp,src);
     1868  if (IDELEMS(AA)>1)
     1869  #ifdef __APPLE__
     1870    qsort_r(AA->m,IDELEMS(AA),sizeof(poly),src,compare_rp);
     1871  #else
     1872    qsort_r(AA->m,IDELEMS(AA),sizeof(poly),compare_rp,src);
     1873  #endif
    18651874  poly s=hilbert_series(AA,src,wdegree,Qt);
    18661875  id_Delete(&AA,src);
Note: See TracChangeset for help on using the changeset viewer.