changeset 7238:3f77dc642839

8046269: Build broken : THIS_FILE : undeclared identifier Reviewed-by: sla
author coffeys
date Mon, 09 Jun 2014 10:50:31 +0100
parents f901cef944de
children 9df69ec6c161
files src/windows/transport/shmem/shmem_md.c
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/windows/transport/shmem/shmem_md.c	Wed Jun 04 16:26:11 2014 +0400
+++ b/src/windows/transport/shmem/shmem_md.c	Mon Jun 09 10:50:31 2014 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1999, 2003, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 2014, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -30,6 +30,11 @@
 #include "sysShmem.h"
 #include "shmemBase.h"  /* for exitTransportWithError */
 
+/* Use THIS_FILE when it is available. */
+#ifndef THIS_FILE
+    #define THIS_FILE __FILE__
+#endif
+
 /*
  * These functions are not completely universal. For now, they are used
  * exclusively for Jbug's shared memory transport mechanism. They have