Actions

icon Post
text/html Subscribe
text/html Unsubscribe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[patch] unconditional SAL dependency


  • To: VSIPL++ Developers List <vsipl++@xxxxxxxxxxxxxxxx>
  • Subject: [patch] unconditional SAL dependency
  • From: Don McCoy <don@xxxxxxxxxxxxxxxx>
  • Date: Fri, 11 Nov 2005 10:05:23 -0700

This patch corrects a test that required SAL unconditionally.

Committed.

--
Don McCoy
CodeSourcery, LLC

2005-11-11  Don McCoy  <don@xxxxxxxxxxxxxxxx>

	* tests/sal-assumptions.cpp: corrected unconditional dependency on SAL.
Index: tests/sal-assumptions.cpp
===================================================================
RCS file: /home/cvs/Repository/vpp/tests/sal-assumptions.cpp,v
retrieving revision 1.1
diff -c -p -r1.1 sal-assumptions.cpp
*** tests/sal-assumptions.cpp	14 Oct 2005 14:07:45 -0000	1.1
--- tests/sal-assumptions.cpp	11 Nov 2005 17:00:53 -0000
***************
*** 15,27 ****
  #include <iostream>
  #include <vsip/initfin.hpp>
  #include <vsip/impl/layout.hpp>
- #include <sal.h>
  #include "test.hpp"
  #include "output.hpp"
  
  using namespace std;
  using namespace vsip;
  
  
  // this verifies that std::pair<> and the SAL types for split
  // complex share the same layout.  the explicit cast is exactly the
--- 15,28 ----
  #include <iostream>
  #include <vsip/initfin.hpp>
  #include <vsip/impl/layout.hpp>
  #include "test.hpp"
  #include "output.hpp"
  
  using namespace std;
  using namespace vsip;
  
+ #ifdef VSIP_IMPL_HAVE_SAL
+ #include <sal.h>
  
  // this verifies that std::pair<> and the SAL types for split
  // complex share the same layout.  the explicit cast is exactly the
*************** check_split_layout()
*** 53,63 ****
      assert( *pcs->imagp == *p.second );
    }
  }
! 
  
  int 
  main()
  {
    check_split_layout();
  }
  
--- 54,68 ----
      assert( *pcs->imagp == *p.second );
    }
  }
! #endif
  
  int 
  main()
  {
+ #ifdef VSIP_IMPL_HAVE_SAL
    check_split_layout();
+ #endif
+ 
+   return 0;
  }