0026044: Optimize math_GlobOptMin class to enter options for solutions of some specif...
[occt.git] / src / math / math_Memory.hxx
1 // Copyright (c) 1997-1999 Matra Datavision
2 // Copyright (c) 1999-2014 OPEN CASCADE SAS
3 //
4 // This file is part of Open CASCADE Technology software library.
5 //
6 // This library is free software; you can redistribute it and/or modify it under
7 // the terms of the GNU Lesser General Public License version 2.1 as published
8 // by the Free Software Foundation, with special exception defined in the file
9 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
10 // distribution for complete text of the license and disclaimer of any warranty.
11 //
12 // Alternatively, this file may be used under the terms of Open CASCADE
13 // commercial license or contractual agreement.
14
15 #ifndef math_Memory_HeaderFile 
16 #define math_Memory_HeaderFile 
17
18 #include <string.h>
19
20 // uniquement parce que memmove n'existe pas sur SUN
21 #ifndef WNT
22 void *reverse_move(void *s1, void *s2, int size);
23
24 inline void *memmove(void *s1, void *s2, int size) {
25
26 /*
27      void *result;
28
29      if(s2 < s1) {
30        result = reverse_move(s1, s2, size);
31      }
32      else {
33        result = memcpy(s1, s2, size);
34      }      
35      return result;
36 */
37      return memcpy(s1, s2, size);
38    }
39 #endif
40 #endif