Skip to content

Commit

Permalink
add conditional OMP header inclusion fixes #4
Browse files Browse the repository at this point in the history
  • Loading branch information
david-cortes committed Jul 28, 2019
1 parent f7610c8 commit fd8c0b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -50,7 +50,7 @@ def build_extensions(self):
'cython'
],
python_requires = ">=3",
version = '0.1.2.9',
version = '0.1.2.10',
description = 'Reductions for Cost-Sensitive Multi-Class Classification',
author = 'David Cortes',
author_email = 'david.cortes.rivera@gmail.com',
Expand Down
6 changes: 5 additions & 1 deletion src/calcv.c
@@ -1,7 +1,9 @@
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <omp.h>
#ifdef _OPENMP
#include <omp.h>
#endif
#include <math.h>
#ifdef _FOR_R
#include <R_ext/Print.h>
Expand All @@ -10,6 +12,8 @@
#include <stdio.h>
#endif

/* TODO: use qsort_s for argsorting, or switch to C++ std::sort */

typedef struct indexed_double {double x; size_t ix;} indexed_double;

int comp_for_argsort_dbl(const void *a, const void *b)
Expand Down

0 comments on commit fd8c0b9

Please sign in to comment.