not supported by gcc < 3
* sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
GUI tool by default
* src/pic/gen.c: don't include [p]strdin.h on solaris
* support/Util/pstdint.h: addad svn attributes
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4240
4a8a32a2-be11-0410-ad9d-
d568d2c75423
enable_serio="yes"
fi
else
enable_serio="yes"
fi
else
# 1. Remove the extension, and $U if already installed.
ac_i=`echo "$ac_i" |
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
# 1. Remove the extension, and $U if already installed.
ac_i=`echo "$ac_i" |
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
- # 2. Add them.
- ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
- ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
+ # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
+ # will be set to the directory where LIBOBJS objects are built.
+ ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
+ ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
if test $enable_serio != "no"; then
enable_serio="yes"
fi,
if test $enable_serio != "no"; then
enable_serio="yes"
fi,
AC_SUBST(enable_ucsim)
AC_SUBST(enable_dlso)
AC_SUBST(enable_51)
AC_SUBST(enable_ucsim)
AC_SUBST(enable_dlso)
AC_SUBST(enable_51)
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#if defined(_MSC_VER)
#include "pstdint.h"
#else
#include <stdint.h>
#endif
#if defined(_MSC_VER)
#include "pstdint.h"
#else
#include <stdint.h>
#endif
#include "SDCCglobl.h"
#include "newalloc.h"
#include "SDCCglobl.h"
#include "newalloc.h"
-#if !defined __GNUC__ || __GNUC__ > 2
+#if !defined __GNUC__ || __GNUC__ >= 3
/* flexible array members not supported by gcc < 3 */
struct str1
{
/* flexible array members not supported by gcc < 3 */
struct str1
{
static void
testFlexibleArray1(void)
{
static void
testFlexibleArray1(void)
{
-#if !defined __GNUC__ || __GNUC__ > 2
+#if !defined __GNUC__ || __GNUC__ >= 3
/* flexible array members not supported by gcc < 3 */
/* test sizeof */
ASSERT(sizeof(s11) == 1);
/* flexible array members not supported by gcc < 3 */
/* test sizeof */
ASSERT(sizeof(s11) == 1);
/* test initialisation with string */
/* test initialisation with string */
-#if !defined __GNUC__ || __GNUC__ > 2
+#if !defined __GNUC__ || __GNUC__ >= 3
/* flexible array members not supported by gcc < 3 */
struct str2
{
/* flexible array members not supported by gcc < 3 */
struct str2
{
static void
testFlexibleArray2(void)
{
static void
testFlexibleArray2(void)
{
-#if !defined __GNUC__ || __GNUC__ > 2
+#if !defined __GNUC__ || __GNUC__ >= 3
/* flexible array members not supported by gcc < 3 */
/* test sizeof */
ASSERT(sizeof(s21) == 2);
/* flexible array members not supported by gcc < 3 */
/* test sizeof */
ASSERT(sizeof(s21) == 2);