Changeset 39bc9cb in git


Ignore:
Timestamp:
Jun 25, 2014, 5:44:23 PM (10 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
30e8434d6add640c5b00dc1b9502c04f794f8f18
Parents:
255778a8943d3393fd1abc1f69fa6c03b2823bc1
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2014-06-25 17:44:23+02:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2014-06-30 17:02:21+02:00
Message:
Added more tests for qsort_r
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Singular/dyn_modules/syzextra/syzextra.cc

    r255778 r39bc9cb  
    55/** @file syzextra.cc
    66 *
    7  * Here we implement the Computation of Syzygies
     7 * New implementations for the computation of syzygies and resolutions
    88 *
    99 * ABSTRACT: Computation of Syzygies due to Schreyer
     
    6666BEGIN_NAMESPACE(SORT_c_ds)
    6767
    68 #if (defined __APPLE__ || defined __MACH__ || defined __DARWIN__ || defined __FREEBSD__ || defined __BSD__ || defined OpenBSD3_1 || defined OpenBSD3_9)
     68#if (defined(HAVE_QSORT_R) && (defined __APPLE__ || defined __MACH__ || defined __DARWIN__ || defined __FREEBSD__ || defined __BSD__ || defined OpenBSD3_1 || defined OpenBSD3_9))
    6969static int cmp_c_ds(void *R, const void *p1, const void *p2){
    70 #elif (defined _GNU_SOURCE || defined __GNU__ || defined __linux__)
     70#elif (defined(HAVE_QSORT_R) && (defined _GNU_SOURCE || defined __GNU__ || defined __linux__))
    7171static int cmp_c_ds(const void *p1, const void *p2, void *R){
    7272#else
     
    389389  const int sizeNew = IDELEMS(id);
    390390
    391 #if (defined __APPLE__ || defined __MACH__ || defined __DARWIN__ || defined __FREEBSD__ || defined __BSD__ || defined OpenBSD3_1 || defined OpenBSD3_9)
     391#if ( (defined(HAVE_QSORT_R)) && (defined __APPLE__ || defined __MACH__ || defined __DARWIN__ || defined __FREEBSD__ || defined __BSD__ || defined OpenBSD3_1 || defined OpenBSD3_9) )
    392392#define qsort_my(m, s, ss, r, cmp) qsort_r(m, s, ss, r, cmp)
    393 #elif (defined _GNU_SOURCE || defined __GNU__ || defined __linux__)
     393#elif ( (defined(HAVE_QSORT_R)) && (defined _GNU_SOURCE || defined __GNU__ || defined __linux__))
    394394#define qsort_my(m, s, ss, r, cmp) qsort_r(m, s, ss, cmp, r)
    395395#else
  • configure.ac

    r255778 r39bc9cb  
    4242AC_CHECK_HEADERS(unistd.h iostream.h sys/time.h sys/times.h asm/sigcontext.h)
    4343
    44 AC_CHECK_FUNCS(readlink getcwd getwd setenv putenv)
    45 
     44AC_CHECK_FUNCS(readlink getcwd getwd setenv putenv qsort_r)
    4645
    4746AC_CHECK_PROGS([DOXYGEN], [doxygen])
Note: See TracChangeset for help on using the changeset viewer.