Importing a macro in a class

In reply to cgales:

but below code works fine

package my_pkg;
  `define CLOCK_PERIOD 10
endpackage 

module main;
   import my_pkg::*;

    initial begin
       $display("clock peripod = %0d",`CLOCK_PERIOD/2);
    end
endmodule