if(COMPILER_C_MINOR_VERSION)
# set(__GNUC_MINOR__ ${COMPILER_C_MINOR_VERSION})
endif()
- set(MSVC 0)
- set(BORLAND 0)
else()
message(FATAL_ERROR "Please use MinGW to compile SimGrid!")
endif()
message(STATUS "CMAKE_BUILD_TOOL ${CMAKE_BUILD_TOOL}")
message(STATUS "LINKER ${CMAKE_LINKER}")
message(STATUS "CMAKE_GENERATOR ${CMAKE_GENERATOR}")
- message(STATUS "BORLAND ${BORLAND}")
- message(STATUS "VISUALC ${MSVC}")
message(STATUS "GNUC ${CMAKE_COMPILER_IS_GNUCC}")
endif()
#cmakedefine _WIN32 @_WIN32@ /*this variable is set if it is a 32 bits windows platform*/
#cmakedefine _WIN64 @_WIN64@ /*this variable is set if it is a 64 bits windows platform*/
#cmakedefine __VISUALC__ @__VISUALC__@
-#cmakedefine __BORLANDC__ @__BORLANDC__@
#ifdef _XBT_WIN32
#ifndef __GNUC__
#cmakedefine __GNUC__ @__GNUC__@
# define XBT_INLINE inline
# elif (defined(__STDC__) && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L)
# define XBT_INLINE inline
-# elif defined(__BORLANDC__) && !defined(__STRICT_ANSI__)
-# define XBT_INLINE __inline
# else
# define XBT_INLINE
# endif
* support for application self-debugging.
*/
-#if defined(_XBT_BORLAND_COMPILER) || defined(_XBT_VISUALC_COMPILER)
+#if defined(_XBT_VISUALC_COMPILER)
/* native windows build */
# include <dbghelp.h>
#else
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
-/* specific to Borland Compiler */
-#ifdef __BORLANDDC__
-#pragma hdrstop
-#endif
-
#include "xbt/strbuff.h"
#define minimal_increment 512
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
-#ifdef __BORLANDC__
-#pragma hdrstop
-#endif
-
#include "xbt/sysdep.h"
#include "surf/maxmin.h"
#include "xbt/log.h"
xbt_free(A);
}
-#ifdef __BORLANDC__
-#pragma argsused
-#endif
-
int main(int argc, char **argv)
{
xbt_init(&argc, argv);
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
-#ifdef __BORLANDC__
-#pragma hdrstop
-#endif
-
-
#include "surf/maxmin.h"
#include "xbt/module.h"
#include "xbt/xbt_os_time.h"
free(used);
}
-#ifdef __BORLANDC__
-#pragma argsused
-#endif
-
-
int main(int argc, char **argv)
{
int nb_cnst = 2000;
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
-#ifdef __BORLANDC__
-#pragma hdrstop
-#endif
-
#include <stdio.h>
#include "simgrid/sg_config.h"
#include "surf/surf.h"
XBT_DEBUG("Simulation Terminated");
}
-#ifdef __BORLANDC__
-#pragma argsused
-#endif
-
int main(int argc, char **argv)
{
surf_init(&argc, argv); /* Initialize some common structures */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
-#ifdef __BORLANDC__
-#pragma hdrstop
-#endif
-
#include <stdio.h>
#include "simgrid/sg_config.h"
#include "surf/surf.h"
}
-#ifdef __BORLANDC__
-#pragma argsused
-#endif
-
int main(int argc, char **argv)
{
surf_init(&argc, argv); /* Initialize some common structures */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
-#ifdef __BORLANDC__
-#pragma hdrstop
-#endif
-
#include "surf/trace_mgr.h"
#include "surf/surf.h"
free(host_A);
}
-#ifdef __BORLANDC__
-#pragma argsused
-#endif
-
-
int main(int argc, char **argv)
{
surf_init(&argc, argv);
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
-#ifdef __BORLANDC__
-#pragma hdrstop
-#endif
-
#include <stdio.h>
#ifdef _MSC_VER
}
-#ifdef __BORLANDC__
-#pragma argsused
-#endif
-
int main(int argc, char **argv)
{
xbt_init(&argc, argv);
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
-#ifdef __BORLANDC__
-#pragma hdrstop
-#endif
-
#include <stdlib.h>
#include <stdio.h>
#include <xbt/xbt_os_time.h>
#define MAX_TEST 1000000
-#ifdef __BORLANDC__
-int _XBT_CALL compare_double(const void *a, const void *b);
-#else
int compare_double(const void *a, const void *b);
-#endif
void test_heap_validity(int size);
void test_heap_mean_operation(int size);
}
-#ifdef __BORLANDC__
-#pragma argsused
-#endif
-
int main(int argc, char **argv)
{
int size;
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
-#ifdef __BORLANDC__
-#pragma hdrstop
-#endif
-
#include "xbt.h"
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(test, top,
"Logging specific to this test");
XBT_LOG_NEW_CATEGORY(top, "Useless test channel");
-#ifdef __BORLANDC__
-#pragma argsused
-#endif
-
static void dolog(const char *settings)
{
XBT_INFO("Test with the settings '%s'", settings);