Skip to content

Commit f60e8d8

Browse files
committed
refactor: remove no-longer-needed MSVC adaptations
1 parent db3de6d commit f60e8d8

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

src/lbfgs.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,20 +65,12 @@ licence.
6565
#include "config.h"
6666
#endif/*HAVE_CONFIG_H*/
6767

68-
#ifndef _MSC_VER
6968
#include <stdint.h>
70-
#endif
71-
7269
#include <stdio.h>
7370
#include <math.h>
7471

7572
#include "lbfgs.h"
7673

77-
#ifdef _MSC_VER
78-
#define inline __inline
79-
typedef unsigned int uint32_t;
80-
#endif/*_MSC_VER*/
81-
8274
#if defined(USE_SSE) && defined(__SSE2__) && LBFGS_FLOAT == 64
8375
/* Use SSE2 optimization for 64bit double precision. */
8476
#include "arithmetic_sse_double.h"

src/plfit_mt.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,7 @@
1414
#ifndef __PLFIT_MT_H__
1515
#define __PLFIT_MT_H__
1616

17-
/* VS 2010, i.e. _MSC_VER == 1600, already has stdint.h */
18-
#if defined(_MSC_VER) && _MSC_VER < 1600
19-
# define uint32_t unsigned __int32
20-
#else
21-
# include <stdint.h>
22-
#endif
17+
#include <stdint.h>
2318

2419
#undef __BEGIN_DECLS
2520
#undef __END_DECLS

0 commit comments

Comments
 (0)