Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

Commit

Permalink
Merge pull request #51 from raramakr/swdev-reorg
Browse files Browse the repository at this point in the history
SWDEV-366823 - Change pragma message to warning
  • Loading branch information
ashwinma authored Nov 17, 2022
2 parents 1dcee07 + e87ccd0 commit c8108f9
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/atmi-backward-compat.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,20 @@ function(create_header_template)
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/\n\n#ifndef @include_guard@\n#define @include_guard@ \n\n\#pragma message(\"This file is deprecated. Use file from include path /opt/rocm-ver/include/ and prefix with atmi\")\n@include_statements@ \n\n#endif")
*/
#ifndef @include_guard@
#define @include_guard@
#if defined(_MSC_VER)
#pragma message(\"This file is deprecated. Use file from include path /opt/rocm-ver/include/ and prefix with atmi\")
#elif defined(__GNUC__)
#warning \"This file is deprecated. Use file from include path /opt/rocm-ver/include/ and prefix with atmi\"
#endif
@include_statements@
#endif")
endfunction()

#use header template file and generate wrapper header files
Expand Down

0 comments on commit c8108f9

Please sign in to comment.